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
3answers
1k views

How to batch convert multi-page PDF into individual jpg files

I found these posts on converting a PDF to JPG using ImageMagick. However, I have a 12 page PDF I want to convert into 12 separate high quality jpg files. Looking for the least tedious way possible. ...
2
votes
1answer
15 views

Imagemagick convert -append producing incorrect output

I am trying to stitch together a sequence of images. The first few seem to work fine, but after a couple, bad images appear instead of the specified images. Here are the first several images: ...
0
votes
1answer
3k views

How to install Imagick on Mac OS with XAMPP

I'm having some trouble installing Imagick on a Mac. I have XAMPP installed and when I run sudo pecl install imagick, I get this error: checking ImageMagick MagickWand API configuration program... ...
0
votes
1answer
14 views

Convert binary data to valid image format, using Imagemagick (or other tool)

I have raw binary data in a file. I know that it is "8-BPP monochrome" and I know width and height of image. How could I convert this data to any readable image format?
1
vote
1answer
16 views

Imagemagick's mogrify can't render text

I'm trying a simple mogrify test.png -annotate +100+100 '26082015' on a simple image, and no text is rendered. I also tried: mogrify test.png -font courier -fill black -pointsize 20 -annotate ...
2
votes
2answers
456 views

Batch-processing images of documents to look like a fax

Let's say I have a photo or scan of a text document, possibly with some low-contrast watermark background. If it is a photo, in addition to the watermark there will be brightness gradients from the ...
0
votes
1answer
17 views

Operating on wildcard input files and saving output as <input> + suffix

I want to batch process my a list of wildcard input files and then output then to the input filename with a suffix appended. I'm hoping to understand this general case. In particular, I'm running ...
0
votes
0answers
13 views

Imagemagick - 4 pages to one PDF page

I have a pdf with 100 pages. How can I make a new pdf that in every page I have 4 pages? I know that I can do it with chrome by printing the pdf to new pdf and change this in the options ,But I want ...
-1
votes
1answer
39 views

$PATH not saving after exporting Imagemagick paths

I am trying to install Imagemagick using the official instructions. I have executed the three export commands: export MAGICK_HOME="$HOME/ImageMagick-6.9.2" export PATH="$MAGICK_HOME/bin:$PATH" ...
1
vote
2answers
6k 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: ...
1
vote
0answers
22 views

Disk space used by ImageMagick/Ghostscript

I have a 200 MB PDF file input.pdf consisting of scanned images, whose resolution I want to reduce. Under Windows 7 the following command convert -density 200x200 -quality 60 -compress jpeg ...
1
vote
0answers
20 views

Using `imagemagick convert`, how do I resize an image and convert it to a centred A4 sized pdf while retaining image quality?

When I convert a png-image to pdf, I have been using convert in.png -page A4 out.pdf to get a pdf where the image quality is retained and the image is aligned to the bottom left corner by default. To ...
1
vote
1answer
385 views

Converting from color to true black and white in ImageMagick? [duplicate]

I have seen how to convert a picture from color to grayscale in this Super User question and answer thread. However, grayscale is not black and white. Simply put, if a field has color, I want to ...
21
votes
4answers
22k views

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

In GIMP there is a very simple way to do what I want. I only have the German dialog installed but I’ll try to translate it. I’m talking about going to Picture -> PrintingSize and then adjusting the ...
0
votes
0answers
26 views

Layer 2 images in Imagemagick without affecting colors due to transparency and gradient

I've been working to add some text from a file to an image using Imagemagick. The text inserts into the correct location, but the text color is getting modified from gold to a slightly muddled gray ...
0
votes
1answer
45 views

Create empty truecolor PNG with ImageMagick

How can I create an empty (transparent) PNG containing 24 bit color channels with ImageMagick? The obvious one convert -size 1920x1080 xc:transparent blank.png will create an 1bit b/w ...
2
votes
2answers
3k 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, ...
0
votes
1answer
71 views

Convert jpeg quality to 80% using automator

I want to make a automator script that goes trough a folder with subfolders and convert all .JPEG (or .JPG) to the same JPEG, but with a quality of 80%. There is no option in Automator it self like ...
1
vote
1answer
65 views

Batch appending groups of images using imagemagick

I want to use ImageMagick’s convert script to append two images horizontally. This is easily done with convert +append input1.jpg input2.jpg output.jpg. I have a directory of jpeg files however. ...
15
votes
9answers
16k views

I have compiled ImageMagick on my CentOS, and RMagick won't install

I installed ImageMagick through, (Using ImageMagick 6.7.3-7) ./configure --prefix=/usr && make && make install When I try to gem install imagemagick I get Building native ...
0
votes
0answers
88 views

Calibrating a flatbed scanner with an IT8 target?

I was trying to calibrate a flatbed scanner with an IT8 target. The problem is that most things turn noticeably greenish (by that I really mean a huge difference in the a* value of Lab*). More ...
3
votes
2answers
91 views

Combine multiple JPEGs into one

I have folder of JPEG files named 0_0, 0_1, 1_0, 1_1, etc. First number is column and second one is row. I want to combine them into one JPEG file. How would I go about doing this? I have looked into ...
0
votes
0answers
132 views

Merge two pdf files side by side in command line

I have got two pdf files with same number of pages and want compare each page with the corresponding page in the other file. For this I would like to merge say page 1 of File1.pdf with page 1 of ...
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
4answers
4k views

Get the number of tiffs in a multi-tiff with command line ImageMagick?

Is there a way to get the number of tiffs in a multi-tiff with a command line utility in ImageMagick? What I want to to is to extract (split) the multi-tiff into single files. However if the tiff ...
1
vote
1answer
212 views

Toold for vector-to-vector conversions (SVG/PDF to EMF/EPS) [closed]

I used the convert of IM to translate svg to eps. But apparently ImageMagick rasterized it. Is there a mode to do vector-to-vector conversion? Inkscape does not reproduce transparent areas and ...
1
vote
2answers
14 views

creating numbered image series in imagemagick

How can I create a numbered image series? I have to give number(writing on them) to thousands of images. Is there an easy way to do this: convert input.png -font arial -fill black -pointsize 10 ...
-1
votes
1answer
338 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?
1
vote
1answer
55 views

How to identify black and white images in folder of images

I would like to identify the black and white images in a folder containing 300,000 images which are a variety of colours. An alternative method would be to identify the colour images and treat the ...
4
votes
1answer
2k 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 ...
-1
votes
2answers
62 views

Problems starting Suricata on Mac OS X

I am trying to start Suricata 2.0.7 on Mac OS X but am having issues. Any idea what’s wrong and how to fix it? Here are the errors I am seeing: $ sudo suricata -c /etc/suricata/suricata.yaml -i en2 ...
0
votes
0answers
14 views

ImageMagick input with both page and geometry using bracket notation

Example of what I'm attempting: convert :/path/to/file.gif[2][200x200] png:-, where [2] is the frame and [200x200] is the geometry. Understandably, the above does not work -- I presume ImageMagick ...
3
votes
3answers
1k 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 ...
0
votes
2answers
51 views

JPGs created with Imagemagick won't display on TV

I am trying to convert a free ebook from PNG to JPG, so I can read it on my Sony Bravia KDL-40R470. This is how I converted the PNG file: convert -density 117 -quality 80 progit.pdf progit.jpg ...
0
votes
2answers
63 views

ImageMagick's mogrify tool darkens PNGs (when only trying to resize)

I'm trying to use the simple command to resize images and overwrite the originals: mogrify -resize 80% * My source images are semi-transparent PNGs that happen to be grayscale. The resize operation ...
2
votes
2answers
279 views

How to convert PDF from two slides per page into one slide per page?

I have a presentation in pdf file with two slides per page. I want a presentation in pdf file with one slide per page. I tried using ImageMagick: convert -crop 1x2@ orig.pdf t2.pdf It ...
1
vote
1answer
122 views

Any differences between identify --verbose and exiftool?

Wanted to know if people know of any major differences between identify --verbose and exiftool. A picture here :- ─[$] identify -verbose me_at_minidebconf_thumbnail.jpeg ...
76
votes
1answer
52k views

Combine multiple images using ImageMagick

I would like to combine multiple images into one image using ImageMagick. To explain a little better, I want the result to look similar to this: That is, I have a number of screenshots, and I want ...
12
votes
6answers
13k views

Square thumbnails with ImageMagick (convert)?

How to create square/cropped thumbnail using ImageMagick ? Cropping like below.
1
vote
2answers
5k views

How to convert a photo to a black and white image by ImageMagick?

How can I convert a JPEG photo to black and white (not grayscale) image like output of a FAX scanner, by ImageMagick?
1
vote
0answers
73 views

Gif output not as smooth when selecting a sequence of files individually

I have a sequence of images 001.png 002.png 003.png that I would like to combine into an animation. I used the following command convert -dispose 3 -loop 0 *.png out.gif And it looks ok. However, ...
0
votes
1answer
803 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 ...
2
votes
1answer
1k views

ImageMagick mogrify does not overwrite original files

I would like to convert image formats. I can use 'convert' command, but it made another image. So I searched and find 'mogrify' command in ImageMagick official page. What I did was mogrify ...
5
votes
1answer
750 views

Unable to install Imagemagick on Ubuntu 12.10

I've got a virtual machine running on Ubuntu 12.10. When I try to run apt-get install imagemagick I get several 404 errors: Err http://archive.ubuntu.com/ubuntu/ quantal-updates/main libcups2 ...
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 ...
0
votes
1answer
127 views

Adding bleed margins to CSS sprites with ImageMagick

I have a CSS spritesheet with equal-sized sprites. I want to add a 1-pixel margin to each sprite, and extend each sprite's outermost pixel into that margin -- basically a full bleed effect for each ...
1
vote
1answer
65 views

Can ImageMagick number output files with two digits?

I use the following command to extract pages from PDF files into independent JPG files before inserting them into videos: convert.exe -density 96 -resize 640x480 input.pdf +adjoin -alpha remove ...
1
vote
1answer
211 views

exiftool width and height of resized images not match the new sizes

$ convert original.jpg -resize 50% test.jpg $ exiftool test.jpg ... Exif Image Width : 1200 Exif Image Height : 1600 Image Width : 600 Image Height ...
0
votes
1answer
49 views

-bash: rsvg: command not found

I installed ImageMagick brew install imagemagick --with-librsvg And installation went fine, however when I try to run imagemagick in console I see: -bash: imagemagick: command not found How can ...
0
votes
0answers
58 views

Create clean PDF files?

I have multiple PDF files that could contain malware, so I want to create clean PDF files using utilities available on Linux. My idea is to convert the PDF files to images, then convert the images ...