ImageMagick is a set of command line utilities to modify, transform, and convert images. The utilities are available for all major OSes.

learn more… | top users | synonyms

2
votes
2answers
2k views

Getting the predominant colour in an image?

Is it possible to get the predominant colour in an image from the command line? Ideally I'd like it back as hex or RGB. I thought it might be possible to do this with imagemagick's identify command, ...
22
votes
3answers
5k views

Why is the gif I created so slow?

I am using ImageMagick to turn a collection of pngs into a single gif. I want this gif to loop as quickly as possible. This is approximately the output I expect (courtesy of Wikipedia): This is ...
2
votes
1answer
1k views

Unable to execute port when installing ImageMagick

I'm trying to install ImageMagick by using MacPorts. I've successfully installed MacPorts by using their Mountain Lion .pkg file. I open the terminal and run: sudo port install ImageMagick However ...
0
votes
1answer
242 views

Automatically name output of montage based on input files

I have a folder with images separated into channels: IMAGE_A_R.jpg IMAGE_A_G.jpg IMAGE_A_B.jpg IMAGE_A_RGB.jpg IMAGE_A1_R.jpg IMAGE_A1_G.jpg IMAGE_A1_B.jpg IMAGE_A1_RGB.jpg IMAGE_B_R.jpg ...
3
votes
1answer
1k views

Use imagemagic to put several JPG on one page

I have a folder full of jpg files. When I use the following command, convert *.jpg assembly.pdf I get a pdf file with one image per page of the pdf. I would like to put 9 images on each page. Is ...
3
votes
1answer
307 views

transparent gradients with graphicsmagick

I'm trying to create a gradient that goes from transparent to some color. With imageMagick you can do that with (taken from the documentation): convert -size 100x100 gradient:none-firebrick ...
2
votes
0answers
263 views

Imagemagick batch converting memory overload

I must to convert about billion of images from jp2 to jpg... I create such .bat for /d %%d in (*) do ( for %%f in ("%%~d\*.jp2") do ( convert -limit memory 0 -limit map 0 "%%~ff" -quality 25 ...
0
votes
1answer
723 views

Batch convert with imagemagick jp2 to jpg

What command i need to run to put in img/ folder with same name on ubuntu jpg file with 35% quality converter from jp2? On windows i run such bat: for /d %%d in (*) do ( for %%f in ("%%~d\*.jp2") ...
2
votes
1answer
1k views

generating video slideshow with avconv but maintaining image ratio

This may have already been answered.. but I'm struggling to search for it! I have a set of images, of varying dimensions that I've created a 'fade affect' with, using imagemagicks convert command. ...
0
votes
1answer
743 views

Transparency issues when converting png's to gif

I am using imagemagick's convert to take a set of PNG's and convert to GIF. The command I am using is convert -delay 10 -loop 0 *.png out.gif I like the results as there is little drop in visual ...
0
votes
1answer
120 views

What is the Ubuntu package for Image Magick Wand Development?

What is the Ubuntu package for Image Magick Wand Development ? Please help. apt-get install ....
3
votes
1answer
1k views

Get crisp, clear thumbnails from MP4 with FFmpeg / ImageMagick

My ultimate goal is to get meaningful snapshots from videos that are either 30 min or 1 hour long. "Meaningful" is a bit ambitious, so I have simplified my requirements. The image should be crisp - ...
1
vote
1answer
991 views

Macports Imagemagick Install for PHP

I'm trying to install Imagick for PHP via Macports and the PECL extension, based on the guide here: sudo port install ImageMagick sudo pecl install imagick I entered the opt/local path and setup ...
0
votes
2answers
597 views

Why am I getting “No such file or directory” after install?

If I command convert --version it shows this. bash: /usr/bin/convert: No such file or directory All what I did was this 1. $ wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz 2. $ ...
3
votes
1answer
5k views

How can I remove “ImageMagick” completely?

I think I accidently did install 2 ImageMagicks to my CentOS 5.8 before. Version 6.2.8 was removed by yum erase ImageMagick However, it still shows this when I typed $convert -version Version: ...
0
votes
0answers
248 views

ImageMagick video filter for FFmpeg

I'd like to apply some non-trival video operations on a per-frame base. So far, I've been using shell scripts + ImageMagick + FFmpeg, decomposing the video into individual frames on disk, processing ...
1
vote
1answer
228 views

ImageMagick Append Image sequence Filenames

I am using the animation tool Synfig to export a sequence of .png files. These are in the following format: C1.0000.png , C1.0001.png, C1.0002.png and so on. I want to convert these to a spritesheet ...
0
votes
1answer
1k views

PDF to PNG with ImageMagick/GhostScript: Colorspace=sRGB breaks script

In order to convert a PDF with 100 pages to single PNG files, I've been using the following command: C:\Program files\ImageMagick\convert -density 150 -alpha Opaque file.pdf file.png But that ...
0
votes
1answer
263 views

Can't Start Apache on on Snow Leopard. “libphp5.so requires version 13.0.0 or later, but libjpeg.8.dylib provides version 9.0.0”

To cut a long story short, I was trying to compile and get ImageMagick working on my Mac running Snow Leopard. One thing led to another and now I am stuck with the following error message when I try ...
3
votes
1answer
392 views

How do I use cpulimit with ImageMagick?

I am converting (using ImageMagick) a directory of image files (using a bash for loop in shell). I notice that "convert" is taking up a large amount of CPU use (88% and up). However, If I try to ...
0
votes
1answer
1k views

Installing imagick on OS X with MAMP 2.1.1

I sincerely hope someone here can help me before I lose all my hair. I'm developing a php web app requiring imagick extension and want to test it locally. I have os x 10.8.2 (Mountain Lion) and MAMP ...
1
vote
2answers
5k views

Imagemagick convert returns “no decode delegate for this image format”

I am trying to use this command for ImageMagick: convert "c:\users\****\My Documents\test.png" -transparent white test2.png However, I keep on getting two errors that look like this: ...
7
votes
1answer
2k views

Convert grayscale image into alpha channel image in unix shell

I have a gray-scale image. I want to convert it into an transparent PNG, such that the black pixels (in the original image) become fully opaque, the white pixels become fully transparent, a 50% grey ...
2
votes
1answer
568 views

How do I convert a .cdr file to .jpg using imagick API?

How do I convert a .cdr file to .jpg using imagick API? I have done conversion of .ai and .psd files, but .cdr file isn't working. What can I do to fix this problem?
0
votes
0answers
156 views

batch split note scans with automatic recognition of parts in page

I regularly use paper to make notes and concepts for most things, work and others. To be quick when having an idea I note them one after another, just to make sure I find things later, I use paper ...
4
votes
2answers
1k views

Building ImageMagick on OSX Lion and can't link libpng

I am trying to build ImageMagick 6.8.0-5 on OSX Lion with support for libpng. I am just using the standard ./configure make make install procedure. I succeed in compiling when I do not reference ...
2
votes
2answers
481 views

How to identify the format of images in a pdf?

I have received a number of pdf files with images in them. The original images have been lost, so I need to extract them. I have Adobe Acrobat Pro, so I extracted them using Advanced > Document ...
-2
votes
1answer
183 views

How can I shrink the dimensions of an image file without losing any information? I use linux operating system

I would like to resize an image (say png format) using convert. The tricky thing is that I want to retain the quality of the image when I resize the image back to the original dimensions. For ...
0
votes
2answers
139 views

Identify specific PNG format

How can I tell, ideally with an Imagemagick identify command, whether a particular PNG is PNG32, PNG24 or PNG8? The %z or %[depth] gives the sample depth (not the pixel depth), which is always 8 or ...
4
votes
2answers
468 views

Automating the choice between JPEG and PNG with a script

Choosing the right format to save your images in is crucial for preserving image quality and reducing artifacts. Different formats follow different compression methods and come with their own set of ...
0
votes
1answer
339 views

Is there a GraphicsMagick equivalent to ImageMagick's image stack?

Although GraphicsMagick is a fork of ImageMagick, there are dissimilarities between the two, namely in the support of image stacking in ImageMagick, but not in GraphicsMagick. Taken from the ...
2
votes
1answer
695 views

Batch convert svg to ico, specifying size?

In Windows, I have a GNOME icon theme in the svg format; several svg files residing within subfolders. Is there a way, on the command line, to convert these to ico files with the same name in the same ...
1
vote
0answers
182 views

Convert SVG that has an Arabic text to png (or any raster)

I have an SVG file which has Arabic texts. When I tried to convert it to a raster format Arabic text became unicode signs. Latin letters are allright. I tried imageMagick and rsvg-convert. Both are ...
1
vote
2answers
973 views

Imagemagick convert making strange gif

I am trying to make a GIF from a set of PNGs (files like f0010.png). convert *0.png out.gif The GIF is coming out strange -- not looking like the PNGs, cutoff, stuff missing, etc. I tried also ...
3
votes
1answer
722 views

Vectorized fonts in PDF output of ImageMagick montage?

I am using ImageMagick (under Linux) to make a 3x3 montage of nine PNGs which I have, and label them. Desired is PDF output with vectorized fonts as the labels. I use this command: montage -label ...
17
votes
4answers
19k views

I want to change DPI with Imagemagick without changing the actual byte-size of the image data

I feel so horribly sorry that I have to ask this question here, but after hours of researching how to do an actually very simple task I'm still failing... In Gimp there is a very simple way to do ...
0
votes
1answer
295 views

have imagemagick not use up CPU?

I am on windows (7) and i'd like to have imagemagick make a thumb. I'm using append so it isnt doing one file at a time but many. I figured out how to limit the memory usage (-limit area). I don't ...
0
votes
1answer
204 views

Plain mathematical definition for Imagemagick's -color-matrix operation

How does -color-matrix work and what does "similar to Adobe Flash" mean? I'm looking for a plain mathematical definition. How are the input vector(s), matrix and output vector composed? How is the ...
4
votes
1answer
853 views

Thumbnail generation with imagemagick doesn't render the correct colors

Generating thumbnails of PDFs with imagemagick sometimes renders incorrect colors. We're using an old version of imagemagick (6.5.7-8, that's the version installed on the heroku servers). Here is the ...
6
votes
2answers
4k views

How can I deskew and crop PDFs made from scanned pages *automatically*? [duplicate]

Possible Duplicate: Which free software can I use to deskew scanned images I have several PDFs made up of book pages' scans. The scans are made from two pages at a time and some of these ...
2
votes
3answers
2k views

How to insert white space with imagemagick?

What parameters does "convert" (?) need to get this OUTPUT from this INPUT? INPUT: OUTPUT:
0
votes
1answer
251 views

Make imagemagick's `display` exit at terminal, preserving the window (single instance mode)

When I use imagemagick's display from command line, say: $ display -density 150 test1.pdf ... then display locks in the command line, until you exit the window (or press CTRL+C in terminal). ...
8
votes
2answers
7k views

Command Line loop to run command on all files in a directory (plus sub directories, if possible

I'm assuming this is fairly easy to do, but I have zero experience with Windows's command line utilities. Basically, I need to iterate over all files in a directory (great if it can do ...
3
votes
3answers
954 views

Can I use ImageMagick to remove the password from a PDF?

If I have a PDF and I have its password, I can merely send it to a PDF printer to get a new PDF with the same contents and no password. The process is not exactly painless though (Ubuntu's inbuilt PDF ...
5
votes
3answers
5k views

How do I change the canvas size of a PNG with ImageMagick (GraphicsMagick)? (How to pad with transparency?)

Alternatively: How do I take a non-square PNG and "fill out" the "rest" of the image with transparency so that the resulting square image has the original image centered in the square? ULTIMATELY, ...
0
votes
2answers
1k views

Undefined symbols for architecture x86_64: Mac OSX when installing ImageMagick

I am trying to install imagemagick and on my snow leopard MacOSX with homebrew. when i run: sudo brew install imagemagick it breaks at this point with the following error log. ld: warning: ...
1
vote
1answer
516 views

Import (ImageMagick) does not capture overlays

I've been using import from Imagemagick to take screenshot of my second monitor every 15 seconds, and then later assembled the images using mencoder - thus creating a timelapse of what has been going ...
0
votes
3answers
3k views

How to batch-convert JPG files to uncompressed TIFF

I need to collect 1000 uncompressed TIFF files. I have a large set of JPG images, so I decided to convert them to TIFF format. The loss in quality is ok in this case for me. I used the following ...
-1
votes
1answer
329 views

Verify image quality using ImageMagick?

We are converting group 4 TIFF images to PNG; this may deteriorate the quality. Is there any way to automate image quality verification using ImageMagick?
0
votes
0answers
141 views

PhotoViewer.dll for Windows XP

I know it comes with Windows 7, but is there an equivalent standalone module for XP's "Picture and Fax Viewer"?