imagemagick

Imagemagick problem when loading a png file

I've compiled the latest version of imagemagick for the mac and I get the assertion below when I load a particular png file. This is a bit of a hassle as it crashes the program in debug mode. Anyone ever seen this before? Any workarounds? Assertion failed: (quantum_info->signature == MagickSignature), function DestroyQuantumInfo, file...

script for cropping images

Hi! I have many (about 1000) images (printscreens), and I need to crop these images (all cropped images are in the same region in the full image). How can I do this in php? Or maybe GIMP is supporting some macro scripts to do this? Thanks in advance. ...

How can I build imagemagick without any asserts

Right now I'm using the following: export CFLAGS="-O2-isysroot/Developer/SDKs/MacOSX10.5.sdk -arch i386 -I/sw/include/" export LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk,-L/sw/lib/" sudo ./configure --prefix=/sw --with-quantum-depth=16 --disable-dependency-tracking --with-x=no --without-perl --enable-static --disable-share...

Convert PDF to JPG automatically on upload in Drupal

Hiya, I was wondering if anyone knows how to automatically convert PDF's to JPGs in Drupal when a user uploads, i'm able to create a script to do the actual conversion but my dilema is being able to catch the file on upload and the process it. (or if there is a script/module that already does it it would be even better!). Thanks in adv...

Imagemagick, Snow Leopard and PDF Conversion

Having difficulties with Imagemagick and Snow Leopard. Imagemagick was installed using the install script from here here. Everything builds and installs correctly. Imagemagick behave normally for all commands (that I can find) except when trying to convert a PDF. For example, $ convert my.pdf my.jpg Segmetation Fault I thought it ...

ImageMagick: Append to Multi-Page Image

Greetings, I need to programatically append to a multi-page TIFF or PDF a new image. The problem is that the individual images (that compose the multi-page one) have large resolutions and ImageMagick first loads the entire multi-page image into memory, which takes all the system's memory. I need to be able to append to a multi-page ima...

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

ImageMagick: are fonts platform independent

Are fonts in ImageMagick system dependent, or do they come inside ImageMagick and can be equally used in any platform. ...

Exec imagemagick convert via C#

Hi, When I open a command window in windows and use the imagemagick convert command: convert /somedir/Garden.jpg /somedir/Garden.png It works as expected. What I am trying to do is executing the same command as above using C#. I tried using System.Diagnostics.Process, however, no foo.png gets created. I am using this code: ...

ImageMagick & Pie Charts

What is the most direct way to draw a pie chart using ImageMagick in an existing image. For example, how would I draw a single slice given the following inputs? A center point (x,y) Radius Percent ...

ImageMagick and Geometry Issue - resizing with >

using the latest version of imageMagick for windows (downloaded today) small_image.jpg = 16x16 large_image.jpg = 800x600 convert small_image.jpg -gravity Center -resize '208x120>' -background white -extent 208x120 s_icon.gif produces: "convert: invalid geometry `'208x120' @ geometry.c/ParseRegionGeometry/1322" yet it still produces a 2...

Explain whats different between ImageMagick on Windows and on CentOS linux?

I have been using ImageMagick running on a Windows 2003 server that is called in a PHP script to create a thumbnail of an image using the following command: $cmd = "convert.exe \"". $fullpath . "\" -resize \"" . res_image_width ."x" . res_image_height . ">\" \"". $fullpath. "\" 2>&1"; passthru($cmd); I have now moved this functionalit...

Rails- MiniMagick commands not working

I'm running windows xp and I've got MiniMagick and ImageMagick installed (latest versions). I'm now using the console to test out that everything works. Using the ms command prompt image magick works no problem. I'm testing this by using the identify command. Now, when I try to use MiniMagick from the console by entering image = MiniMag...

ImageMagick OSX Snow Leopard bad CPU type

Installing imagemagick works. But when I try to run a command it says bad cpu type. What is this and how do I get rid of it so that it works right? N.b. I'm 'behind the times' and only using a core solo (if that helps) ...

image magick: right align text in area

Hi, i'm struggling with this: i'm building a table-like image. All goes well, but i can't get this to work: i want to place some text at x,y: 10,10, but want to right align it in an area of 40x40. Why? because they are numbers. When i draw text it's ok to place it at 10,10; it will by default be placed at 10,10 and thus be left-aligned....

Can you force ImageMagick to use PNG-8 alpha transparency?

When I try to run a bunch of PNG-8 images with alpha transparency through Imagemagick, it converts them to PNG-32, increasing the file size a lot. Is it possible to force Imagemagick to keep my image type as 8-bit PNG? ...

OpenCV Vs ImageMagick?

Hi I have an upcoming project which is about image segmentation i.e. to group the pixels constituting the image into clusters based on certain visual properties of the pixel. We plan to do it in C++ and have zeroed in on two image processing/manipulation libraries - OpenCV and ImageMagick. I'm reading on ImageMagick and it seems it has...

Why would a loaded PHP extension fail on class instantiation?

I have some code which is resizing images, using either Imagick or GD, depending what's available on the server. I'm testing for availability of each using the extension_loaded() function. if (extension_loaded('imagick')) { $image = new Imagick(); ... } I have one user reporting that they are receiving: Fatal error: Class...

Detect single color overlay area with ImageMagick

I have a bunch of images that have a single color overlay with some text on it positioned at the bottom. Not all images have the overlay and the overlay is not of the same height on every picture. I am looking for a way to detect the overlay rectangle, and crop only the part of the image without it. Trim seems the logical way to go, b...

ImageMagick convert error (Wrong JPEG library version: library is 62, caller expects 70)

Looks like it is reading the wrong jpeg ibrary, but I have jpeg 7 installed. How do i tell ImageMagick to look up the right JPEG library version(I don't care 62 or 70 as long as it works). here is the instruction i am following ...