image-manipulation

Python image mirroring

Hey I've been making a picture mirroring in horizontal and vertical axes. Now I'm going to make the diagonal. I had done the hori and verti width two for loops which in the hori scenario loops through all the pixels in the height and only the half of the pixels in the width. Then it gets the color of the pixel and set the same color to...

Image editor component in Flex / JavaScript

Hi everyone, I'm looking for a simple Flex or JavaScript based image editing component which can be embedded in a web application. It shouldn't be a web service but rather a component that I can download and customize (i18n etc.). I only need some basic features: most important is cropping, optional features would be rotating and adjus...

Change Image Encoding Dynamically?

I want to know whether it is possible to programmatically change an image encoding on the fly without saving the image to a file? Use Case: When the user copies a binary image from a source, would it be possible to change the image encoding from binary to base64? ...

Combined image rotation & cropping in jQuery

We currently have a system for cropping images that uses jCrop on the front-end, and System.Drawing in .NET on the backend - this works very well, but now we need to introduce image rotation. Only 90 degree angles are needed, and jQuery.Rotate works fine in isolation, but I would like to combine these two jQuery plugins gracefully. Do yo...

Silverlight Image Display - Potential implementations?!

Hello! Currently I have a silverlight business application (C# Hosted in ASP.Net on IIS). The database behind the app is setup with a one to many relationship between two particular tables - One Job, Many Images. So for each job I display In my application I have potentially a large number of images to display. Currently I use a listbox...

Rails- MiniMagick commands not working

I'm running windows xp and I've got MiniMagick and ImageMagick installed (latest versions). I'm now using the console to test out that everything works. Using the ms command prompt image magick works no problem. I'm testing this by using the identify command. Now, when I try to use MiniMagick from the console by entering image = MiniMag...

image magick: right align text in area

Hi, i'm struggling with this: i'm building a table-like image. All goes well, but i can't get this to work: i want to place some text at x,y: 10,10, but want to right align it in an area of 40x40. Why? because they are numbers. When i draw text it's ok to place it at 10,10; it will by default be placed at 10,10 and thus be left-aligned....

Detect single color overlay area with ImageMagick

I have a bunch of images that have a single color overlay with some text on it positioned at the bottom. Not all images have the overlay and the overlay is not of the same height on every picture. I am looking for a way to detect the overlay rectangle, and crop only the part of the image without it. Trim seems the logical way to go, b...

Java Graphics library

I'm looking for a high-level java graphic library for creating artistic text, watermarks, resize, crop, image identification and manipulation. ImageMagic is a good example of such library, but its java ports are somewhat problematic (they either run imagemagic through JNI or via commandline and are hellish to deploy to servers). Ideally ...

Superimposing images in PHP

Is there a PHP function that would allow me to superimpose an image over another one? If not, how can I accomplish this (not asking for code, just a list of steps)? ...

Reducing size of user avatars? - creating thumbnails.

Hi, User of my site upload images which are used as avatars. I have set a upload limit size of 2 MB. At most places I only require thumbnails. But users upload images with far bigger resolutions. I store these files on my file-system. How can i create thumbnails and store them instead of large sized files? ...

Resize image twice in Django using PIL

I have a function in which I'm trying to resize a photo twice from request.FILES['image']. I'm using the image.thumbnail() with the Parser as well. This works fine when I create one thumbnail, but in my view if I repeat the exact same thing again, it fails in the parser via IOError cannot parse image. I'm very confused. I've created Stri...

"Colourizing" a Bitmap in .NET

If you have a System.Drawing.Bitmap instance that contains a greyscale image, is there a built in way to "colourize" it with the influence of another colour? For example, if you had a black and white (greyscale) picture of a coffee mug and you wanted to create separate images of red, green and purple versions programmatically. ...

PHP GD image perspective

Hi is it possible to transform an images perspective... so it's new shape is an isosceles trapezoid? I saw a solution using imagemagick, but that would involve possibly rewriting my entire image manipulation script... (not to mention learning, of which i'm allergic) ...

Resizing images

Is there any convenient way of resizing image with C#? ...

GDI+, using DrawImage to draw a transperancy mask of the source image

Is it possible to draw a transperancy mask of an image (that is, paint all visible pixels with a constant color) using Graphics::DrawImage? I am not looking for manually scanning the image pixel-by-pixel and creating a seperate mask image, I wonder if it's possible to draw one directly from the original image. My guessing is that it sho...

ASP.NET Image Resizing

Hello, We need the ability to gracefully resize any photo/image to an exact width/height without skewing the image. We can use either a third-party solution, or we can use the built-in .NET functionality to handle this. I thought there had to be an easy solution to this without having to program a complex algorithm. Example Scenario ...

Applying brightness and contrast with OpenGL ES

I want to change the brightness and contrast of a texture on the iPhone. I've been looking at the sample provided by apple (GLImageProcessing) but it only is able to do one at a time (calling both methods in the sample overwrites the previous result). Brightness works great: glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_COMBINE); i...

App Engine image resize without maintaining aspect ratio?

When I call resize on images using app engine, they maintain their aspect ratio - I don't end up with the size I ask for. I'm trying to make rectangular pixel NTSC images from square pixel sources, so I don't want this behaviour I want to take an image that is 720x540 and resize it to 720x480 but what I actually end up when ask for the...

Snow Leopard Python 2.6 problems getting PIL to work

I installed libjpeg and PIL, but when I try to save a JPG image, I always get this error: ImportError: The _imaging C module is not installed Any help much appreciated! I tried to import _imaging w/ Python interpreter to see what's wrong and got this: >>> import _imaging Traceback (most recent call last): File "<stdin>", line 1...