image-manipulation

Cropping a UIImage

I've got some code that resizes an image so I can get a scaled chunk of the center of the image - I use this to take a UIImage and return a small, square representation of an image, similar to what's seen in the album view of the Photos app. (I know I could use a UIImageView and adjust the crop mode to achieve the same results, but these...

javascript Image Resize

does anyone knows how to resize image proportionaly using javascript?, i have tried to modify the DOM adding attributes height & Width on the fly, but seems did not work on IE6 ...

How to manipulate images at pixel level in C#?

How to manipulate images at pixel level in C#? I need to be able to read/modify each bitmap pixel RGB values separately. Code sample appreciated. Thanks in advance! ...

ImageMagick Reflection

Brief: convert ( -size 585x128 gradient: ) NewImage.png How do I change the above ImageMagick command so it takes the width and height from an existing image? I need it to remain a one line command. Details: I'm trying to programatically create an image reflection using ImageMagick. The effect I am looking for is similar to what ...

C++: What's the simplest way to read and write BMP files using C++ on Windows?

I would like to load a BMP file, do some operations on it in memory, and output a new BMP file using C++ on Windows (Win32 native). I am aware of ImageMagick and it's C++ binding Magick++, but I think it's an overkill for this project since I am currently not interested in other file formats or platforms. What would be the simplest way ...

Rounded Corners on UIImage

I'm trying to draw images on the iPhone using with rounded corners, a la the contact images in the Contacts app. I've got code that generally work, but it occasionally crashes inside of the UIImage drawing routines with an EXEC_BAD_ACCESS - KERN_INVALID_ADDRESS. I thought this might be related to the cropping question I asked a few weeks...

adding text to TIFF

I need to add text string to a TIFF image. I am planning to use libTIFF for editing the TIFF image. The plan is to convert text to image using freetype2 and then somehow render the text image on to TIFF. Is this the right approach? Any pointers on how to convert text to image? I saw the sample code of ft2 - initialising the library, cre...

How to get the file size of a "System.Drawing.Image"

I am currently writing a system that stores meta data for around 140,000 ish images stored within a legacy image library that are being moved to cloud storage. I am using the following to get the jpg data... System.Drawing.Image image = System.Drawing.Image.FromFile("filePath"); Im quite new to image manipulation but this is fine for ...

Ghostscript PDF -> TIFF conversion is awful for me, people rave about it, I alone look sullen.

My stomach churns when I see this kind of output. and this was my command as suggested by http://stackoverflow.com/questions/75500/best-way-to-convert-pdf-files-to-tiff-files#221341 gswin32c.exe -q -dNOPAUSE -sDEVICE=tiffg4 -sOutputFile=a.tif a.pdf -c quit What am I doing wrong? (commercial products will not be considered) ...

Selecting a non-standard image area in a web application

This question is for a web application. And maybe it's a stupid question but I was wondering if there is a way to generate a polygon with 4 points, so that the user can himself drag each point to create it's own (As an example, let's say that we want to remove a window from an image that it is not at a normal angle) .Is it possible?. ...

How to make icon with pink background transparent?

I'm using Visual Studio icon library (VS2008ImageLibrary), there are some BMP files with a pink background. How can I make the pink background become transparent? What software can I use to do this? Any free one? Thanks ...

Slicing up a UIImage on iPhone

Objective: take a UIImage, crop out a square in the middle, change size of square to 320x320 pixels, slice up the image into 16 80x80 images, save the 16 images in an array. Here's my code: CGImageRef originalImage, resizedImage, finalImage, tmp; float imgWidth, imgHeight, diff; UIImage *squareImage, *playImage; NSMutableArray *tileImg...

High Quality Image Scaling C#

I want to scale an image in C# with quality level as good as Photoshop does. Is there any C# image processing library available to do this thing? ...

Saving a modified image to the original file using GDI+

I was loading a Bitmap Image from a File. When I tried to save the Image to another file I got the following error "A generic error occurred in GDI+". I believe this is because the file is locked by the image object. Ok so tried calling the Image.Clone function. This still locks the file. hmm. Next I try loading a Bitmap Image from a ...

What is the best language for footprint recognition?

Hi everyone. I have a project to recognize the footprint of animals. It is similar to facial recognition. There is a need to store footprint images in a database and compare them with images captured by camera. The question is what is the appropriate programming language to do this? ...

Find known sub image in larger image

Does anyone know of an algorithm (or search terms / descriptions) to locate a known image within a larger image? e.g. I have an image of a single desktop window containing various buttons and areas (target). I also have code to capture a screen shot of the current desktop. I would like an algorithm that will help me find the target i...

Convert PNG to bitonal TIFF

-Edit- FYI.. I am converting b&w documents scanned in as greyscale or color. 1)The first solution worked, it just reversed black & white (black background, white text). It also took nearly 10 minutes. 2)The JAI solution in the 2nd answer didn't work for me. I tried it before posting here. Has anyone worked with other libraries free ...

How do I do high quality scaling of a image?

I'm writing some code to scale a 32 bit RGBA image in C/C++. I have written a few attempts that have been somewhat successful, but they're slow and most importantly the quality of the sized image is not acceptable. I compared the same image scaled by OpenGL (i.e. my video card) and my routine and it's miles apart in quality. I've Google ...

Image Manipulation with Javascript?

I'm trying to write a greasemonkey script, and it would be preferable for it to be able to work with images (specifically, find the darkest pixel in an image). Is there a way to do this or must I embed flash? ...

Evernote app "Tips" image overlaying UITableView

The Evernote application has a tips pane which hangs over a UITableView on the initial window. When you click on tips, a straight forward animation happens with a tips pane sliding up into view. My question is, how is that tips pane implemented in the sense that, you absolutely have to click on the tab sticking out for it to animate. An...