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

6
votes
2answers
5k 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 ...
3
votes
3answers
3k 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
258 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
9k 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
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 ...
5
votes
3answers
6k 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
539 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
4k 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
337 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
142 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"?
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
2answers
2k views

lossless PNG to video in Imagemagick

As an intermediate step in creating an animation, I need to put a bunch of sequential PNGs into a movie file. I tried ffmpeg but was getting compression and artifacting even when I set quality to ...
1
vote
0answers
328 views

can I remove imagemagick by deleting directories?

I posted this to StackOverflow, but probably belongs here. I'm on OSX Lion, trying to get back to basics so I can run RMagick in Rails 3.0, using rvm. When I tried to add the RMagick gem to Rails ...
0
votes
1answer
134 views

Batch Image Labelling

I have an image I would like to make 50-100 copies of, but for each copy a label is added in the form of a number corresponding to the copy number. Is there existing software that does this? Is there ...
0
votes
1answer
1k views

ImageMagick refuses to render solid colored rectangle. Why?

I found this example in the imagemagik website: convert -size 100x100 canvas:khaki canvas_khaki.gif which should generate a 100x100 khaki square in the given filename. I didn't manage to run this ...
5
votes
2answers
1k views

PDF => raster, is it possible to adapt the sampling resolution to the input page size?

I am using convert (Imagemagick component, delegating to Ghostscript in background) to transform the first page of PDF files to images. Usually, convert -density 200 file.pdf[0] first_page.png will ...
2
votes
1answer
4k views

Convert ppt to jpg

I am using an Ubuntu system. I want to convert ppt or pptx to jpg using terminal commands. I have libreOffice and ImageMagick installed in my system. I am successfully converting pdf to jpgs using ...
2
votes
1answer
722 views

Keep alpha transparency in indexed PNG from Fireworks when batch resizing using convert (ImageMagick)

I have a special case where I'm using alpha transparency in indexed PNGs from Fireworks to keep the file size of PNG's in an iOS game down. (That is, indexed colors like an 8bit PNG but alpha ...
12
votes
4answers
4k views

How can I tell if my image is CMYK from Linux command line?

I'm converting images from RGB to CMYK. How can I tell if my image is CMYK from the Linux command line?
1
vote
2answers
547 views

Any way to make two images the same size and/or aspect ratio in ImageMagick?

Suppose I want to have two images side by side in a slide but they are different sizes. I know I can use "mogrify" and "convert" and all that to resize them, but it's a pain to type in the exact ...
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 ...
2
votes
3answers
2k views

Taking a proper screen shot with GNOME-Shell non-disruptively

Running Fedora 15 (moving to 16 soon) - 2.6.40.6-0.fc15.x86_64 I would like to take a screen shot every few seconds - something like: $ while true; do import -w root png:$(date +%F_%R:%S).png; sleep ...
2
votes
2answers
4k views

JPG files are too small when converted from PDF with imagemagick

I'm on Ubuntu 10.04 with imagemagick. I used this command: convert myfile.pdf -density 300 file.jpg This works well, but the JPGs are only about an inch high. How can I preserve the paper size in ...
0
votes
2answers
269 views

Image to PDF quality

I am converting multiple jpg images to a single PDF using following command convert *.jpg mybook.pdf but the pdf quality is not good. Is there a way to retain the original quality of images in ...
1
vote
0answers
600 views

Installing an OTF Font under Ubuntu Server

I have an OTF Font I want to use with ImageMagick. Last time I had to install it on other machines, I copied it into /usr/share/fonts and ran fc-cache, then, convert -list font | grep "myfont" found ...
1
vote
1answer
586 views

Limiting threads of ImageMagick - not getting limited

I'm on a virtual machine, and according to this document in the "Cache Storage and Resource Requirements section", if you're on a VPS you should probably limit the threads to two. I am. But before ...
3
votes
1answer
1k views

GraphicsMagick error reading PNG file

When trying to read a large PNG file, GraphicsMagick command gm convert pallaso1.png pallars-sobira.jpg just displays this error c:\progs\GraphicsMagick\gm convert: Read Exception (PALLASO1.PNG). ...
2
votes
1answer
389 views

how to change the color that's used for transparency automatically, or programmatically?

For every picture (e.g. bmp, png), a transparent point actually does have a color The transparency is either defined by alpha channel mask (e.g. in PNG) or one of the colors is defined as ...
2
votes
2answers
664 views

Is it safe to use ImageMagick on user images?

I've heard there may be security concerns when using ImageMagick on arbitrary user-provided images. For example, the link below gives evidence that there used to be some buffer overflow exploits. ...
1
vote
0answers
866 views

From Illustrator to png with the help of ImageMagick

Currently I save my files in Illustrator as .pdf files so that I can use ImageMagick to manipulate the resulting images programatically (cropping, adding borders, resizing, etc) and convert them to ...
0
votes
0answers
207 views

ImageMagick “display” command returns “delegate library support not built-in” error [duplicate]

Possible Duplicate: Cannot run 'display' after ImageMagick install on Ubuntu When I enter: # display logo.gif I get the following error: display: delegate library support not ...
2
votes
1answer
303 views

Linux wallpaper change

I am looking for a tool that can resize images and display them on the root window of an X11 display at a specific coordinates. I can use display from iagemagick like so display -window root ...
-2
votes
4answers
410 views

ImageMagick is truncating (squaring) my icons on resize

Trying to resize from 48x48 icon to 16x16 and the resulting file from imagemagick is 16x16 but cut off around the square. Command: convert -resize "16x16" businessman_add.ico -depth 8 mynew.ico ...
2
votes
1answer
428 views

Should jpegtran remove more bytes than mogrify strip?

I'm currently using mogrify -strip image.jpg to remove unwanted bytes from images, it was suggested I could remove further data by using jpegran from libjpeg, something like: jpegtran -copy none ...
57
votes
2answers
40k views

How do you re-install a package with Homebrew (Mac)?

Struggling to find good Homebrew documentation (or tutorial)... In the mean time I need to reinstall ImageMagick that was installed with Homebrew (brew install imagemagick) and not sure if I should ...
1
vote
2answers
1k views

terminal transparency, Imagemagick, and X11 root window problem

I use Ubuntu Natty, urxvt (with 256 colours), and Imagemagick (display -window root [...]) to set the root window to a picture. When I use the transparancy (-tr) option on urxvt, I get the Ubuntu X ...
3
votes
1answer
2k views

How to render some text with given font file?

How to just render some text with the given font? Expecting something like: echo "The slow cyan snail creeps under the eager cat" | render_text --font ./qqq.ttf --scale=18 -o text.png I expect this ...
5
votes
2answers
4k views

Convert a series of PNGs to an animated gif or video file

I have a series of PNG image files that I want to convert into animation. What is the best way to convert them into a GIF? Also I have tried various tools to convert them into a video file (like ...
2
votes
1answer
740 views

append images using a grid

convert +append ... appends images horizontally. convert -append ... appends images vertically. Imagine i have a set of N images and i want to create to append the images following a grid of N/2 ...
4
votes
1answer
581 views

Parallel processing slower than sequential?

EDIT: For anyone who stumbles upon this in the future: Imagemagick uses a MP library. It's faster to use available cores if they're around, but if you have parallel jobs, it's unhelpful. Do one of ...
4
votes
1answer
3k views

Appending images horizontally in ImageMagick

convert -append 1.jpg 2.jpg out.jpg This command appends 1.jpg and 2.jpg vertically. What is the command to do this horizontally?
0
votes
0answers
548 views

Comparing two images: get the XY location of any differences found

I'm trying to compare two images using the ImageMagick Compare module; everything seems okay, but I want to know the exact XY locations of the 'differences' found. How can I get this? I already ...
2
votes
2answers
7k views

What tool can be used to blur images?

Preferably something in paint, or some other built in tool, and definitely free. Does not need to be fancy, just what amounts to smudging the text in an image.
1
vote
1answer
581 views

What does the output of Imagemagicks identify mean?

Can someone please explain me the following output of imagemagicks identify? image.gif GIF 345x49 345x49+0+0 8-bit PseudoClass 256c 1.79KB 0.000u 0:00.000 I know the follwing: I know that GIF is the ...
0
votes
1answer
347 views

Imagemagick - JPG And PNG extension not working

I have installed ImageMagick-6.5.7-8 and ghost script 8.64 on ubuntu. They are installed successfully but JPG and PNG extension not working here. GIF extension working successfully. I have installed ...
74
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 ...
6
votes
2answers
367 views

Mass recoloring of PNGs from command line

Similar to the mass rescaling command this site taught me here, is there a command-line trick for mass recoloring? To make it specific, suppose I have a bunch of images with RGB and alpha values: ...
1
vote
1answer
191 views

ImageMagick command sometimes fails

I have an ImageMagick command that is something like this: convert "/path/to/photo" -set comment "(c) my company" -resize WxH miff:- | composite -dissolve 30 -geometry +40+138 -quality 80 ...
3
votes
1answer
1k views

Linux: concatenate several images into a PDF file with several images per page

I know that ImageMagick's convert program can be used as follows to convert a collection of images -- say, in PNG format -- to a PDF file: convert *png output.pdf The problem with this is that each ...