image-manipulation

How to create multiple line-breaks in a dynamic image when needed?

Currently I've got the following working just fine without any problems (yet). header ("Content-type: image/png"); $string = $_REQUEST['text']; $font = 15; $width = 300; $height = 350; $image = imagecreate($width, $height); $back = ImageColorAllocate($image, 255, 255, 255); $border = ImageColorAllocate($image, 0, 0, 0); ImageFilledR...

How to optimize image processing in Symfony from model

Hello, guys! Assume a Doctrine model Profile: # This is example of my schema.yml Profile: columns: avatar: type: string(255) notnull: true My goal is to generate profile's avatar from uploaded file: class Avatar extends BaseAvatar{ public function postSave($e){ if($this->getAvatar()){ // resize/crop it to 1...

Using the Image.point() method in PIL to manipulate pixel data

I am using the Python Imaging Library to colorize a black and white image with a lookup table that defines the color relationships. The lookup table is simply a 256-element list of RGB tuples: >>> len(colors) 256 >>> colors[0] (255, 237, 237) >>> colors[127] (50, 196, 33) >>> My first version used the getpixel() and putpixel() met...

Resizing image programmatically in C#

Possible Duplicate: Resize an Image C# How can I programmatically resize an image in C# so that it'll fit in a winforms control? ...

How do you draw a string to a Bitmap in Silverlight?

In normal C# it is easy to draw to a bitmap using the Grpahics.DrawString() method. Silverlight seems to have done away with Bitmap objects and Graphics is no longer available either. So...How am I meant to manipulate/create a bitmap when using Silverlight? If it helps, I am using Silverlight 3. Let me tell you what I am doing. I am ...

Fading a picture gradually (Python, Jython)

Sorry, I'm obviously new at this, but the idea of this function is to fade the top half only of the picture (make it gradually darker). Here is what I have but it seems to be making all of the top half solid black. Any help would be appreciated. Correct code edited in. Question resolved. Thanks Justin and everyone else! def fadeDow...

JS/jQuery Image Editor

Hello, has anyone stumbled upon image editor done either in pure JS, or jQuery - that kind like CKEditor has? I'm looking for piece of code, that adds handles to image, so you can resize it, or even drag image around, as you wish. Thank you. Edit: rephrased. ...

How to apply Image Processing to OpenGL?

Sorry if the question is too general, but what I mean is this; in OpenGL, before you perform a buffer swapping to make the buffer visible on the screen, there should be some function calls to perform some image processing. I mean, like blur the screen, twisting a portion of the screen, etc. or performing some interesting "touch up" like ...

Reducing the file size of a very large images, without changing the image dimensions

Consider a application handling uploading of potentially very large PNG files. All uploaded files must be stored to disk for later retrieval. However, the PNG files can be up to 30 MB in size, but disk storage limitations gives a maximum per file size of 1 MB. The problem is to take an input PNG of file size up to 30 MB and produce an...

How to extract the number of control points from Hugin.

Hi, Is there any way to extract the controlpoints calculated using Panomatic or any other Control Point detector? All I need is to compare two images based on the number of control points and tell which two images are similar. I need to do this in Command Line. ...

PHP - Problem with ImageCopyResampled

Hello. It's my first time using the function ImageCopyResampled. I just followed the code written in the PHP manual. There seemed to be no errors when I ran the code. The problem is my code just basically copies the original image and did not follow the dimensions as it was defined in the parameters passed in the function. Below is my c...

Good image manipulation utility for .Net based applications

I looking for a good image manipulation library/utility for using in .Net based application. What I need it to do? Reduce the size of the image, by supplying a width value. but save the look of the image. Reduce the weight of the image, by optimizing it to web suffering. The following thing are a good plus: Add a watermark to th...

Are there any open source PHP classes to resize an image to a certain width and height?

I have one currently that simple does it by aspect ratio, however I need it to fill a 150 x 150 size, whereas mine would honour its ratio and do 150 x 120 for example. Ideally it would goto the centre of the image. Thanks ...

OpenCV: how to rotate IplImage?

I need to rotate an image by very small angle, like 1-5 degrees. Does OpenCV provide simple way of doing that? From reading docs i can assume that getAffineTransform() should be involved, but there is no direct example of doing something like: IplImage *rotateImage( IplImage *source, double angle); ...

Blurring a picture (Python, Jython, picture editing)

Trying to blur a picture in Jython. What I have does run but does not return a blurred picture. I'm kinda at a loss of what is wrong with it. FINAL (WORKING) CODE EDITED IN BELOW. THANKS FOR HELP GUYS! def main(): pic= makePicture( pickAFile() ) show( pic ) blurAmount=10 makeBlurredPicture(pic,blurAmount) show(makeBlurredPictur...

Image operations on remote server

I recently purchased a new domain for the sole purpose of hosting all the static content on a separate server and delegate CPU intensive operation like thumbnail creation on a different pool. Now I would like to do some operations on images uploaded to that remote server : creating thumbnails or updating the image if we need to. Should I...

Jython image manipulation problem.

This program is supposed to take the outline of an image, then split it into different quadrants, then color it, such as the Andy Warhol Marilyn Monroe picture. Every function up to the "Warholize" function works but it gets stuck on c=getPixel(picEdge,x,y) under the warholize function at which I'm not sure what to do. Any help would...

how do I find the h&w of an image and convert to vars, then use those vars

ok, here's the deal: I'm using a nice plugin I got from http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop/ It's nice and all, but it doesn't solve a particular problem: I'll have users uploading images of differing sizes and aspect ratios, so, here's what they provided: function preview(img, selection) { var scaleX = 160...

16-Bits BMP Validation

I'm developing a script using VBScript and I need to validate the input file as a 16-Bits BMP. At the time my script is like this: Const OverwriteExisting = TRUE Set objFSO = CreateObject("Scripting.FileSystemObject") objFSO.CopyFile "C:\16bmp.bmp" , "D:\test.bmp", OverwriteExisting But How can I validate the input file as a 16-Bits...

simple web-based icon editor

My web site uses 16 x 16 pixel icons (stored on the server as png files). I'd like to provide functionality for users of the site to edit these icons. My site already uses jQuery and jQuery UI, and I'm familiar with these, but any suggestions would be welcome. EDIT It seems that this is harder than I thought. I think I'm going to hold ...