image-manipulation

Django/Python resize image

Hello. I have a image from files = request.FILES['new_photo'].read() and i want to know it's size and possibly resize it. How i can do it? thanks. UPD before. i read() file and gave this string and some info? to SQL function. And she save it on ftp. how i can get data same as the data returned from read() method? i try to use ...

C# - Finding the Boundaries of an Image (not the size)

Hello ! I'm developing an application to split an image grid equally and center the images (based on their similarity). So far, I could manage to fix a grid of images with small sizes, but whenever I try a larger "sprite" size (100x100, for instance), I get Stack Overflow error. Yes I'm using recursion, but whenever a pixel is checked,...

Erase bitmap parts using PorterDuff mode

Hi all, I try to erase parts of a bitmap in my Android application by using Porter-Duff Xfermodes. I have a green background which is overlayed by a blue bitmap. When I touch the screen a "hole" in the overlaying bitmap is supposed to be created making the green background visible. Instead of a hole my current code produces a black do...

How to replicate iPhoto's "Enhance" action with ImageMagick tools?

I don't really know what iPhoto's Enhance actually do, so, I guess we could start by finding out exactly what it's doing. I'd wager some mix of auto-levels, sharpen, and color adjustment. I'd like to, then, do something as similar as possible with the ImageMagick shell tools, or, if need be, with some programming thrown in through a lib...

Turn square image into round rect button with shine [Objective C]

In this picture you will see several TV show images that have been put into a rounded rect button with the same gloss/shine that an iphone app button usually has. In one of the icons you even see a ribbon saying "On air". I'm wondering; how do you replicate this effect? My guess is the programmer masked an image on top of the square...

java image crop

Hello, I am aware of BufferedImage.getSubimage However, it cant deal with cropping images that are smaller than the cropping size throwing the exception: java.awt.image.RasterFormatException: (y + height) is outside raster I want to be able to crop either a PNG/JPG/GIF to a certain size however if the image is smaller than the croppi...

PHP Image Resize Classes

My website allows uploading of images. I limit images to 10 megapixel or less JPEG images, all images get stored in a directory. Now I want the images resized on the fly and I am looking for a PHP class/library that can do that for me. While I can write (and I have written) gd-library code for resizing images I want something that's stab...

Turn 3D rotation of vector object into vector object

Hi all, I have a vector object in Illustrator CS3. For the sake of simplicity, let's say it's a rectangle. It has been "3D-rotated", and now appears to me to be a slightly skewed parallelogram. Of course, this 3d effect could be discarded at any time and it would appear to me again in its true shape, a rectangle. What I want is for m...

iphone - digital image processing

I want to build an app similar to Fat Booth, Aging Boot etc. I am totally noob to digital image processing. where should I start? Some hints? ...

javascript dynamic image url to a dynamic image output php script

Hi, 1. I am uploading an image by using iframe. From that iframe i call a callback function like imageuploaded("filename.jpg") which gets called after the image has properly uploaded. So after the php script executes i dump this as output ... die("<script>window.parent.window.imageuploaded('filename.jpg')</script>"). This works perfect...

PHP Imagick setImageOpacity destroys transparency and does nothing

Here's the thing. I hava a simple snippet in PHP like this regarding a transparent image: $im = new Imagick('some-transparent-image.png'); $im->setImageOpacity(0.3); $im->writeImage('output.png'); The file output should be a transparent image with lower opacity, right? Well, the output is an image with black color where it was supp...

image cropping with codeigniter

I am working with jcrop and codeigniter to allow users to crop images that they upload, I want to the image t crop to a size of 90x60 but what ever I try nothing seems to work, my current code looks like this, CONTROLLER function save_crop() { $this->load->library('image_lib'); $config['image_library'] = 'gd2'; ...

How to write an image file on server?

Hello, I have a silverlight 3 app using webservices, which uploads an image to server. Then, on server, I resize this image (using EmguCV) and I want to save this image on the server filesystem. The resulting image is created with the size (500px max in one dimension) and saved to 'C:\ ...". This is all working well when debugging in as...

Can you open a JPEG, add text, and resave as a JPEG in .NET?

I want to write a small program in .NET 4.0 that will open a .jpg (or .jpeg) file, add a line of text to the image, and then resave the image as a .jpg. Does anyone know the easiest way to do this? Thanks for any help. ...

algorithm for scaling an image from a given pivot point

standard scaling using the center of an image as the pivot point and is uniform in all dimensions. I'd like to figure out a way to scale an image from an arbitrary pivot point such that points closer to the pivot point scale less than points away from that point. ...

imagecopyresampled in PHP, can someone explain it?

OK i thought i understood this function but i have a complete mental block on this one. I wanted to create cropped thumbnails of size 75x75 from photos that are 800x536. the imagecopyresampled function has 10 possible parameters. i first tried this: // Starting point of crop $tlx = floor(($width / 2) - ($new_width / 2)); //fin...

iPhone Active Image

I am trying to create an active image, similar to an image map but capable of zooming in and out using iPhone SDK ...

Capturing PDF pages as Image

Hi iDevs, I want to capture PDF pages as Images, To do so i am drawing PDF over UIView using CGContextDrawPDFPage method. then capturing image by implementing following code: UIGraphicsBeginImageContext(view.bounds.size); [objPdfPage.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *viewImage = UIGraphicsGetImageFromCurren...

Image manipulation using java

hi guys, i'm trying to create a program that generates images for use as multi-screen backgrounds, i'm doing this targeted at windows (in my case, 7 so that basically i can get images to change without seeing the same image on two different screens) in my program, i read multiple image input files and compile them into a single output i...

php manipulating uploaded images/files from the tmp folder before moving to another folder

Hi, I have been manipulating image files after uploading in the usual way like moving the file from the /tmp folder to a preferred folder of the site. Now i want to manipulate images by keeping them in the temp folder and once i have done with it then i want to move it to the preferred folder. What i am trying to do is ... Showing a...