imagemagick

How to write a bash script that cuts images into pieces using image magick?

Hi, I have a number of input images that contain multile smaller images, all in a single row. All the contained images are the same size. So, for example, the image input.png may be 480x48 and contain 10 48x48 images, all in one row. Using the imagemagick convert tool (or any other tool supplied with the defaul imagemagick suite), I wa...

ImageMagick PNG Resize Increases File Size

I am resizing images using ImageMagick. If I pass a -resize WxH option it behaves as expected. But if I pass -resize WxH! (to ignore aspect ratio during resize), some images, especially PNGs, are actually increasing in size. A 200k image becomes 450k, a 170k image becomes 360k and so on. Any ideas why this is hapenning and how to fix it...

How can I get a libtiff TIFF object from a MagickWand object (in C)?

How can I get a libtiff TIFF object from a MagickWand object (in C)? I want to open any given image type with ImageMagick and run tesseract on it. Tesseract seems to use libtiff for it's IO, ImageMagick seems to use libtiff for it's tiff handling, so I figured I should somehow be able to use ImageMagick with tesseract without meddling i...

MagickCore writing image data to stdout rather than to a filename

I'm using MagickCore to generate images from scratch. I'm trying to save my Image as a PNG file, but whenever I call WriteImage, it outputs to standard out rather than to the filename that I specified. For example: Image *image = ImageGenerator(...); // generates valid image ImageInfo *info = CloneImageInfo (NULL); info->file = NULL; s...

ImageMagick MacPorts install fails on Snow Leopard

I recently upgraded to Snow Leopard. I installed the new XCode Tools and the X11 optional install. I upgraded to the new Snow Leopard binary of MacPorts, did a port selfupdate, reinstalled all ports and ImageMagick wasn't working. I uninstalled the ImageMagick port, reinstalled it, and got the following error trace: $ sudo port inst...

Can I get IPTC and EXIF data from an image using imageMagick?

I have tried: identify -format %[exif:*] filename.jpg Which returns nothing. identify -verbose filename.jpg Doesn't give me the data I want. I am currently running: Version: ImageMagick 6.0.7 07/25/08 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2004 ImageMagick Studio LLC Should I be able to get this data with ...

draw semi-transparent line with ImageMagick

Hi, is it possible to draw a line semi-transparent with image magick? i want to draw a line and a semi-transparent just next to it to create a anti-alias effect (maybe that is a better description of my question :)) Michel ...

How to make ImageMagick Imagick class available?

This is a really amateur question but I've installed ImageMagick from the ports on my FreeBSD. However when I use $image = new Imagick($filename); I get: Fatal error: Class 'Imagick' not found in /usr/local/www/test.php on line 1 How do I make this class accessible to the scripts? ...

What do scale and inflate do in the ImageMagick file resizer class

I am using ImageMagick via Symfony to resize images in PHP. The sfThumbnailer class uses 'scale' and 'inflate' parameters to interface with ImageMagick. What do they do and how will they affect my results? I realise this is a RTFM question, but I already have, and the documentation is not clear. Image Magick Documentation Symfony Thu...

How can I grab the color of a pixel on my desktop? (Linux)

I want to grab the color of a pixel with known coordinates on my Linux desktop. Until now, I've used "import -window SomeWindow -crop 1x1+X+Y /tmp/grab.jpg" then extracting the pixel value using Python and PIL. This does the job, but since import grabs the whole window before cropping, it's very slow :( Are there any clever way to gra...

Is Image Magick 6.2.4 always backwardly compatible with legacy versions?

To use the PHP extension for ImageMagick, I need to upgrade my server to ImageMagick version 6.2.4. However I have some legacy code that uses version 6.0.7 I saw a slashdot comment from 2006 about ImageMagick being notoriously bad for backwards compatibility but I have no personal experience of this. Looking throught the archives it ...

Jmagick rounding corners

Hello, I've a question concerning Jmagick, how can I round corners of an image, and does this make sense or would it be better to do this using CSS in HTML ? Thanks ...

In place rotation of overlay image on the background with ImageMagick

I have a small (100x80) overlay image which will be placed at x=40, y=50 on a transparent background(800x600) and then rotated 80 degrees in place. convert -size 800x600 xc:none -background transparent m01.jpg -rotate 80 -geometry +40+50 -composite final.png rotates the merged image. how can i rotate only the overlay image in pla...

Taking a Screen Shot of an Embedded Linux Framebuffer

I'm running Embedded Linux on an evaluation kit (Zoom OMAP35x Torpedo Development Kit). The board has an LCD and I would like to be able to take screen shots convert them into a gif or png. I can get the raw data by doing the following: "cp /dev/fb0 screen.raw", but I am stumped on how to convert the image into a gif or png format. I pl...

Imagemagick thumbnail generation with php - using -crop

Hi there, Long ago I created a small library for resizing images using imagemagick through system(...) because I did not feel that the build-in imagemagick functions for PHP were sufficient. However, recently I had to port this to a symfony project and I chose to use sfThumbnailPlugin (if I remember correctly). This unfortunately didn'...

Should I use ImageMagick or GD2 with ImageAPI in drupal?

Why? What are the pros and cons of each? ...

How can I extract EXIF data using PerlMagick?

I'm currently using Perl Magick http://www.imagemagick.org/script/perl-magick.php, the perl interface to Image Magick http://www.imagemagick.org, to process & convert photos that our site users upload. I'd like to be able to also capture some of the EXIF data attached to these images and I have been able to figure out how to do this usin...

Use libpng static lib in ImageMagick/GraphicsMagick

Hi everyone, I'd like to compile a executable that contains imagemagick and it's delegate libraries like libpng to ease distribution. I easily compile imagemagick into my app but it always seems to use the dynamic libs. I installed both dynamic and static delegate libs using macports. Is there a way to tell ImageMagick to use the stati...

Documents and examples of PythonMagick

Where can I find the document and examples of PythonMagick? I did a search on Google but no much information was found. ...

Is it possible to compile ImageMagick with custom libxml2 on the Mac

It always seems to pick up the version from /usr/lib and there doesn't seem to be a ./configure parameter to override it. ./configure --prefix=$PREFIX --with-quantum-depth=8 --disable-installed --without-x --without-perl --enable-static --disable-shared --with-jpeg --with-tiff CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS" CFLAGS="$CFLAGS" --d...