image-manipulation

Resize images too large for GD Library on my server

I almost always have a PHP resize script (using GD) in websites for my clients. No matter how many times I tell them to resize their huge 7MP images from their digital camera before uploading them, they still never do it. The result is an "Out Of Memory" error from the server, and the image doesn't get resized, because the original ima...

Subclassing UIImage and adding to UIImageView

Can anyone help me with this. I need to do custom drawing code in -drawRect so I subclassed UIImage. How would I initialize my custom UIImage with an image? Say I override the imageName method, what would I need to do in this method? After initializing can I add it to a UIImageview like so initwithImage:? ...

Image Processing in C# - A smart solution ?

I have an image with letters in it, the letters are in two colors black and blue, I want to read the blue colored letters from the image. Can anyone suggest me a method to do this in C#. Iam studying GDI+,but still didn't get any logic to develop this program.. I tried OCRing it, but the issue with common OCRs is that they dont recogni...

How to create a Facebook-style Thumbnail Selector using .Net

I'm looking at implementing a Facebook-style thumbnail creator using ASP.Net MVC but haven't a clue where to start. The feature in question is most easily-recognised when you upload a new profile picture. After uploading the image, you are presented with a frame that you can drag around the image to select the area that will appear as ...

How can a webserver do images like this?

Below is a thumbnail type image that is on a post from http://doctype.com/, if you haven't been on the site yet, it is similar to this site but for css/design stuff and when you post a question you can have it post a screenshot image as well for you of a website url. Below is one of them I saw, do you think this is something done progra...

PHP Image Resize & My upload script.

I have seen a lot of examples, but I am not sure how it can tie into the upload script i currently have. Could someone please explain how I might be able to use ImageMagick or something of the like to resize an uploaded image to a fixed width while keeping the w:h ratio? I have googled and looked at over 150 web pages but none of them ...

Cross-browser way to flip image via Javascript/CSS?

Is there a library/simple way to flip an image? Flip image like this: AABBCC CCBBAA AABBCC -> CCBBAA I'm not looking for animations, just flip the image. I've googled to no avial and only found a complex version that utilized SVG on MozillaZine which I'm not confident that it'll work cross-browser. ...

Transform flat image into nice rounded image with 3D highlight, a la iPhone, using Qt

On the iPhone, you give it your 45x45 flat image for the app icon, and the SDK rounds and highlights it for you automatically, giving it a new 3D effect. Does anyone have sample code or recommendations on how to emulate this using Qt4 APIs? Thanks, --DD ...

Combined re-scaling and color reduction of an image in Java?

Given a rectangular input image I'd like to create an output image of size 40x40 pixels using a maximum of 10 colors. Hence, the two operatons needed are re-scaling and color reduction. The following ImageMagick command does the trick: convert input.png -scale 40x40 -colors 10 output.png How would you achieve the corresponding result...

How can I get the exact location of cursor on image in Picturebox

Hi every one. I have the picture box in which the image may be zoomed with different values. Then I try to find out the location of cursor on picture box. I write the following code on picture box mouse move event: int x = (2 * e.X - pictureBox1.Width + pictureBox1.Image.Width) / (2 * _scale / 100); int y = (2 * e.Y - pictureBox1.Height...

iPhone: Clip user-supplied UIImage by a given CGPath

In my iPhone application, I need to let user to clip user-supplied UIImage by given dynamically generated CGPath. All that is outside given (closed) CGPath should be clipped out, and the resulting image should be trimmed by path's bounding rectangle. Image should be clipped with soft border. That is, there should be a soft gradient in ...

iPhone: Blur UIImage

In my iPhone application I have a black-and-white UIImage. I need to blur that image (Gaussian blur would do). iPhone clearly knows how to blur images, as it does that when it draws shadows. However I did not found anything related in the API. Do I have to do blurring by hand, without hardware acceleration? ...

How to cartoon-ify an image programmatically?

Maybe you have noticed, but cartoon-ifying your photos is the latest rage on the internet. My boss now wants our product, which works with photos and videos of people, to cartoonify them. So I need an algorithm to do it manually (we use c++/Qt for our product, which has image manipulation classes) or perhaps some CLI program that will do...

is libpng a png file decoder

I'm looking for a way to decode some png file, I heard about libpng, but I don't understand how this one works. Does it convert the png file into an array of bytes in the ARGB8888 format or something else ? ...

How to click through a display object in Flash with AS3?

Hi, I am creating a photo editor app where, at some point, the photo you edit is supposed to be dropped between two layers of DisplayObjects (a background image and an image mask.) There is a problem, though. When the image you are editing is dropped between the background and the image mask layers, it becomes unclickable, and therefo...

Using System.Drawing to make a selection tool, and cropping an image in vb.net

If i wanted to crop an image in VB.net, how would I go about doing it? I am trying to let the user drag out the box they want (system.drawing.rectangle), and it will automatically remove the edges surrounding the box. My first problem is primarily the fact that I cannot make the system.drawing.rectangle visible. It is not displaying at ...

Convert image format from .bmp to other image formats in vb.net

How do you convert a System.Drawing.Bitmap image to any other type of image? I tried CType, which failed, since I do not know the type for .png or .jpg. I cannot find it anywhere on google either. What is the most efficient method to do this, which keeps the quality of the image as high as possible? ...

ImageMagic: see all available fonts

ImageMagick can draw text into a picture in a given font, how can I see all available fonts for my system? ...

Combine 2-3 transparent PNG images on top of each other with PHP

I am working on a custom avatar system for a project, but I have never really done much with the image side of PHP. I assume I need to use GD in some way, but I have no idea where to even start. Basically, there are a bunch of pre-made transparent PNG images. Users can select 2-3 of them to customize their avatar, and I want to be abl...

How can I dynamically resize an image in ASP.NET MVC?

Question How can I dynamically resize an image in ASP.NET MVC? Background I'm trying to automatically create thumbnails from images that are already on the server. In ASP.NET Webforms, I created a HTTPHandler to do this and added verbs in the web.config for all image extensions to pass through the handler. The handler was nice in tha...