image-manipulation

Problem when masking UIImage

I took a sample code from the following URL: how to mask an image in order to mask an image. The code is working perfectly on the iPhone simulator but works incorrectly on iPhone 4 simulator (that's when high-res images are loaded...) Here is my code and the mask function: - (void)someMethod { UIImage* image = [UIImage imageNamed...

What are the most used PHP image manipulation classes ?

I am a newbie with php and I want to play with php and images uploaded. What are the most used PHP image manipulation classes ? ...

Image scaling does not work when original image height & width is smaller the scaling height & width

Hello, I have got a problem when trying to scale an image. The problem presents itself when the image i am trying to scale (original) is smaller than the size i am trying to scale up to. For example, an image with the width of 850px and the height of 700px trying to be scaled up to 950px width and height. The image seems to be scaled p...

How to sharpening an uploaded image in PHP ?

How to sharpening an uploaded image in PHP ? Is there some PHP libraries ? What is the best ? ...

How I can detect the background of an image programmatically?

Hi, I need to develop a software that selects a face from a photo where the background is a plain color (green, like in the movies). Then we want to compose that selection with another background image, this part is easy with many libraries. But I don't know how can I do the selection? Can you give some links or libraries to investigate...

Supporting multiple pixel formats

I need to write some code which will operate on a number of pixel formats (eg A8R8G8B8, R8G8B8, R5G6B6, and even potentially floating point formats). Ideally I would like to not have to write each function for each format since that is a massive amount of near identical code. The only thing I could think of is some kind of interface le...

simple php image manipulation

I'm a beginner at this. And I tried to search on the internet about this. And almost all that I found requires frameworks and libraries. And I don't really know how to use frameworks. Can you recommend something that could help me go about image manipulation in php. Something for beginners like me. All I want to do for now is to output a...

Split an image into 64x64 chunks

Hi all, I'm just wondering how I would go about splitting a pixel array (R,G,B,A,R,G,B,A,R,G,B,A,etc.) into 64x64 chunks. I've tried several methods myself but they all seem really over-complex and a bit too messy. I have the following variables (obviously filled with information): int nWidth, nHeight; unsigned char *pImage; And bas...

need to combine several jpegs into a bigger jpeg in a lossless way programmaticaly (.net)

i have several jpeg images and i want to combine them into one big jpeg image. i can do that by creating a Bitmap and then combining them there but that way if i save it again as jpeg the image will deteriorate. so is there any method that i can do that without losing quality from decoding/encoding? in acdsee program i saw an option to r...

Retina display compatibility

For our iPhone app, we are using 50 x 50 user image (from facebook). It works fine for iPhone 3G and 3GS but not for iPhone 4 due to its high resolution display. For iPhone 4 we tried to send 100 x 100 (variable height) image but it is not working for obvious reasons. Any thought? ...

How to resize images with SWFUpload?

I'm using the Flash component SWFupload to handle image uploads on my site. The latest version (2.5 beta) apparently can resize images on the client side before upload, however I have not been able to find any examples for this. I've got the basic upload working, I just need to add the resizing in. Has anyone used this before? ...

Displaying php generated image on a page

I have a function i use in modifying my images, and i want to display thos images on my page alongside other page content. PHP Image Function : <?php function dynamicImage($nw, $nh, $source, $stype, $dest) { $size = getimagesize($source); $w = $size[0]; $h = $size[1]; switch($stype) { case...

screen color filtering

Hi everybody! I want to create a filter over a specific area of the screen to perform filtering opertions. Examples what a filtering opertion might be:     - inverting (e.g. change black pixel to white pixels, red to cyan)     - masking pixels (e.g. mask = ff0000; input c79001 -> c70000)     - operations like photoshop's layer effects ...

Scale a large image and keep same focal point on display.

float getNewScrollPoint(float displayPt, float scrollPt, float imageSize, float scaleFactor) { float imagePt = (displayPt / _Scale) + scrollPt; float nuScale = _Scale * scaleFactor; float nuDisplayPt = imagePt - (displayPt / nuScale); return nuDisplayPt; } public boolean onScale(ScaleGestureDetector detector) { final float scale =...

Which is the best third party library for Image manipulation in .Net?

Which is the best third party library for Image manipulation in .Net? I have tried ImageMagick.Net (http://imagemagick.codeplex.com/releases/view/30302). But it does not have all the wrappers available like transformations and Overlaying with blending. ...

Image Manipulation in Ruby

I'm looking for a way to load up an existing png image, and do a pixel by pixel manipulation of the values. Ideally, something like image = Image.open('my.png') image = image.map_each_rgb do |r, g, b| [r-12, g+2, b+30] end image.save('my.png') I've looked into rmagick, but couldn't find a way to achieve this. Are there any alternat...

Feather an image from code

Is there any way to feather an image from code? (If you don't know what feathering is, check this out - I'm not using dirty language) I know professional design applications like Photoshop can do this, but I would for users to upload images to my site and then display them in a feathered fashion. (Now there's a sentence you don't hear...

Unable to get ImageMagick .Net working with Asp.Net 4.0.

I have downloaded the ImageMagick.Net source code from Codeplex and compiled using Visual Studio 2010. It builds but when I use the generated ImageMagickNET.dll into my Asp.Net 4.0 application I get the following error. External component has thrown an exception. Description: An unhandled exception occurred during the execution of the ...

Handling animated images with PHP

I already wrote a PHP script that allows users to upload images but I want to be able to allow my users to upload animated images. What do I need to add to my current code to allow animated images using PHP? A quick code example would help me out a lot. ...

Algorithm to make a face on a photo look fatter ?

What is the most general and simple approach to make look fatter a face on an image ?I am working with java but programming details are not important i am looking for the algorithm . ...