imagemagick

Imagick (Imagemagick on PHP): serve a file without saving to disk first?

I'm trying to use Imagemagick (actually PHP's Imagick) to create and output (serve) an image without saving it to disk first. Currently I'm having to save the file and then use verot upload class to serve the image. I'm hoping there's something simple that I'm missing. Any suggestions/advice will be much appreciated. (Apache 2 server...

Change background from white to transparent in imagemagick

Hi, I'm importing SVGs with imagick using this syntax $graphic = new Imagick($this->img); The problem is this image is imported with a white background. How can I change the white background to a transparent one, or make imagick keep then transparent background when importing the SVG. ...

How do I get Graphicsmagick's -output-directory option to work if I have no control over the working directory?

Ok, this is somewhat special, but if I cannot find help here, where else should I look? Unfortunately, I am forced to use gm's COM+ API, so I can not set the working directory. So the command line call to resize a batch of JPGs is: gm mogrify -size 500x500 -scale 500x500 -output-directory scaled *.JPG However, I am unable to get this...

PHP/ImageMagic Get the "shadow" of an image

Hi, I would like to script PHP/ImageMagic in order to produce the "shadow" of a given image. Like in this example (done manually in GFXeditor) : original shadow ==> Note: All the originals images will be on a white background like in the example. I've check the ImageMagic documentation but I haven't found anyt...

Paperclip error: "no decode delegate for this image format"

I use Windows 7 and I installed ImageMagic. I can run Identify command from console without a problem. But when I use my Rails application (run from Aptana RadRails IDE), it gives me an error: Magick: no decode delegate for this image format `/Users/karl/AppData/Local/Temp/stream,5000,1.jpg[0]'' @ error/constitute.c/ReadImage/532. Mag...

ImageMagick - How to Build a 32-bit Mac version for MAMP?

This is a pretty straight-forward question: I have an older INTEL Mac (32-bit) and I need to build a 32-bit version of ImageMagick. I've seen some people playing around with options during the binary install, but I can't seem to find any reliable information about how to do this! NOTE: ImageMagick gives out a 64-bit version of the bina...

attachment_fu rmagick on phusion passenger

Hi, I am getting so much pain with setting up rmagick on Passenger . I’m developing a rails web application that has image processing feature using imagemagick. the image processing feature is working 100% on development using mongrel, but once i deploy it to production which uses phusion passenger I get the error uninitialized constan...

Lightweight command-line image resizer?

Hello, I'm looking for an image resizer / thumbnailer that is lightweight and efficient. Something that does a good job with all image types, but most importantly jpeg and png. I've looked into ImageMagick and GraphicsMagick, but they are too heavy. This is something I want to distribute with my app, so the smaller the better. I don...

Recommendation for real time image processing tools on Linux

Hi, I'm trying to find a real time image processing tool that can do image resizing, image/text overlaying and format converting. I found some related posts but they don't quite answer my question. Prioritized criteria for the tool: The processing time needs to be less than 100 ms. The size of output image needs to be small. It needs...

Should I install Imagmagick over gd

I'm starting to work on a project that will require a lot of image manipulation. I remember getting the impression in the past that imagemagick was somehow better than GD. Since I have GD only, this will require me to install imagemagick, and I want to make sure it's worth the trouble. Can someone clarify if it's true that imagemagick ...

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...

Simulate Photoshop's Multiply in PHP with gd or ImageMagick

Having until now only used PHP's gd image library to resize, crop and greyscale images I'm currently struggling to find a way to simulate what happens when, in Photoshop, you place a coloured layer over a greyscale image and select 'multiply' from the layer effects menu. Or, as my old print lecturer would explain it, I need to make a duo...

CLI ImageMagick resize (downscale only)

I would like to resize (only if neccessary) an image to maximum resolution of 800x600. So let's say we have image of resolution 2000x1600 and it will resize to 750x600, but if I have an image of resolution 400x300 it will leave as it is. In other words I need ImageMagick to resize images without upscaling. How can I do this? convert -re...

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...

imagemagick in iphone

i m using imagemagick in my mac os x version 10.6.4 and all cmd is working well in my os . but i want to use imagemagick framework in my iphone project i have added imagemagick framework in my xcode but where can I use command in the xcode project for changing the image ...... if some body can help me thanks in advance!!!! ...

In Imagemagick for linux how do I do a batch convert for a directory.

The title says it all but I want to be able to specify the location in both where to scan and where the converted file will go. It's just there is a lot of conversions and I've got a script which should sort it for me. Currently I've tried convert -resize 300x300 > /media/usbdisk1/development/ephoto/richard/images/gallery/2007/29/norm...

Ghostscript debug output when using Imagemagick

I'm trying to convert a PDF file to a PNG file using PHP and ImageMagick, the small testcase looks like this: echo exec('/usr/bin/convert test.pdf test.png'); When I'm running this from the command line (php5 pdftest.php) it works just fine, however, when I'm running the request from the webserver, the script echos Last OS error: 12, t...

Imagemagick on Windows 7 compatibility issues

Well, it's pretty simple.. I'm trying to get Imagick (for PHP) working on Windows 7 (localhost), but I can't seem to get it right. I used this 'tutorial': http://support.joomlatools.eu/faq/8-installation/144-installing-imagick-on-windows.html But, when finished, it doesn't display Imagick in phpinfo(). Before that, when I try to 'open' ...

Does Imagick Support Radial Gradients ?

Hi, PROBLEM When using Imagick::newPseudoImage to create a radial gradient, this error appears in the Apache HTTP error log and the radial gradient is not created: PHP Fatal error: Uncaught exception 'ImagickException' with message 'Unable to create new pseudo image: radial-gradient:#FF0000-#FFFFFF' in /var/www/html/energy/s...

How can I do a composite image using jmagick?

I was looking to do a composite image similar to this: http://www.imagemagick.org/script/composite.php $magick> composite -gravity center smile.gif rose: rose-over.png using the java jmagick library. I haven't been able to find any decent code snippets to do so. Does anyone have a good example of doing a composite image using jmagick?...