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

3
votes
1answer
950 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 ...
3
votes
2answers
3k 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
570 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
475 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 ...
3
votes
1answer
1k 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
484 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
5k 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
382 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
310 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 ...
44
votes
1answer
32k 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 screen shots, and I want ...
6
votes
2answers
251 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
168 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 ...
7
votes
6answers
9k views

Square thumbnails with ImageMagick (convert)?

How to create square/cropped thumbnail using ImageMagick ? Cropping like below.
5
votes
3answers
4k views

Resizing and cropping images to 6x4 to width of 1024

I have a mixed set of images, each one having a slightly different resolution with a slightly different aspect ratio from the other images. I have tried using commands like: convert -resize and: ...
0
votes
2answers
7k views

How to turn a PDF document upside down [duplicate]

Possible Duplicate: How to save rotated Adobe pdf file? I'd like to rotate by 180 degrees each page in a high-resolution .pdf, but don't know how. In ImageMagick, using 'convert -flip ...
0
votes
1answer
369 views

ImageMagick cannot use identify on remote image if it contains a port number

I am having trouble using exec identify on a remote image with imagemagick if the url contains a port number. So the url appears like this: http://isite.com:81/image.jpg If I remove the :81 it works. ...
1
vote
2answers
616 views

ImageMagick requirement for Paperclip plugin

The Ruby on Rails paperclip plugin says that I need to install ImageMagick in order to use Paperclip. I'm typically really bad at getting things installed and running, so I was wondering if anyone ...
1
vote
3answers
898 views

How to adjust and combine multiple lower quality photos into one better using FOSS?

I have multiple noisy photos (caputed without tripod) that needs to be adjusted (moved/rotated) and averaged. How it's better to do it in Linux with FOSS console-based programs? Current way is ...
0
votes
1answer
579 views

ImageMagick is incorrectly showing some images as negatives

1 2 3 4 Image 1 is the original main file as displayed by ImageMagick display. It is showing up as a negative, but shouldn't be. When displayed using other tools, it's ...
1
vote
1answer
531 views

Imagemagick convert creates monochrome output only

I have a book scan as a pdf. When I open it with Adobe Reader, it looks like grayscale. When I open it with IrfanView, it looks like grayscale, and the Information option tells me that the image is ...
3
votes
3answers
606 views

Why does Imagemagick convert make the first page of output PDFs too large?

When I run convert *.jpg output.pdf the output looks like this: Why is the first page bigger then the others in the PDF? The original JPEGs were all the same size!
0
votes
1answer
2k 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... ...
3
votes
3answers
5k views

Bulk convert PNG-24 to PNG-8 files with best quality

Can anybody recommend a good method of bulk converting a large amount of PNG-24 files to PNG-8 with as little loss of quality as possible and maintaining transparency? I've tried ImageMagick but the ...
0
votes
1answer
191 views

Configure macports to build and install to user-specified directory?

I want several machines on my network to be able to use some libraries installed with MacPorts (the libraries are ImageMagick and its dependent image libs). I do not want to build and install for ...
1
vote
1answer
2k views

Error 800A01AD in VBScript on Windows Vista 64bit when create ActiveX object

I write script in VBScript for converting images. It use ImageMagic ActiveX. I write this script in Windows XP, it's run normaly, the same with Windows Vista 32bit, but in 64bit I have 800A01AD error ...
0
votes
1answer
607 views

Shell script with ImageMagick: hangs forever?

I've generated a shell script that uses ImageMagick to convert and crop around 18000 images. Here's a sample entry (so there are 18000 of these): if [ ! -f ./cropped/16333-1.png ] then convert -crop ...
3
votes
1answer
901 views

How to average multiple images into one with ImageMagick?

convert -average darky1.jpg darky2.jpg lighty1.jpg lighty2.jpg l.ppm convert -average lighty1.jpg lighty2.jpg lighty1.jpg lighty2.jpg d.ppm l.ppm is much lighter than d.ppm. The order of images ...
7
votes
3answers
8k views

Command line to automatically crop an image?

By using Gimp's menu, you can automatically crop the image (removing white borders). I have a lot of images with white borders of different sizes. I want to remove them using Gimp in command line but ...
1
vote
2answers
380 views

Video from Frames at the OS X Command Line or Python?

I am looking for a good way to turn a stack of images into a video on the command line or python. Here is my setup: OS X 10.6 Sequence of images either in png or pdf format. (i.e. 001.png, ...
5
votes
3answers
5k views

Using GraphicsMagick or ImageMagick, how do I replace transparency with a fill colour?

Using GraphicsMagick, it's fairly easy to replace one colour with transparency... gm convert -transparent magenta src.png dst.png Unfortunately, I can't figure out a simple way to do the exact ...
20
votes
3answers
3k views

Convert HTML to image

Background Batch convert various syntax-highlighted source files (C, SQL, Java, PHP, batch, bash) into high-resolution images (600dpi), suitable for an eBook and printed book. Failed Solutions A ...
5
votes
2answers
2k views

How to stretch an image in one dimension?

The title says much, but I'll explain in detail a little more. I need to stretch an image in one dimension only. That is, if the image is for example, 100x100 (Width x Height) I need it to be 100x104 ...
2
votes
6answers
3k views

Sort and rename images by date in EXIF info

I have a mess in my photos folder; I want to sort them according to date in EXIF information and rename according to the date (like 001.jpg, 002.jpg and so on). How can I do this in Linux? I have ...
1
vote
1answer
741 views

Tesseract OCR - Newbie Questions!

I just installed Tesseract OCR and was able to convert a TIF image to its corresponding text. The application seems fairly easy to use, but I am struggling finding the documentation that will help me ...
1
vote
1answer
312 views

How to make this imagemagick command work correctly?

# create a 2 color image from scratch to supply colors for mapping $ convert -size 10x10 xc:white -fill red -draw 'rectangle 0 0 5 5' \ -colors 2 +dither bicolor.gif # map 'em, Danno! $ convert ...
1
vote
2answers
3k views

ImageMagick import command gives error on windows?

I get the following error when I run the import command of ImageMagick from command-line import: unable to open X sever '(null)' @error /import.c/ImportImageCommand/362 [No such file or directory] ...
1
vote
0answers
58 views

How is X-server configured with Windows XP? [duplicate]

Possible Duplicate: ImageMagick import command gives error on windows?? Well I have installed two X-Servers that are Xming And Cygwin. As the import command of ImageMagick works on ...
10
votes
2answers
12k views

Using Ghostscript to convert multi-page PDF into single JPG?

I know Ghostscript can convert PDFs to JPGs, and in the case of a multi-page PDF, can rip each page to an individual JPG. But is it possible to have it rip them to one JPG, so that the pages are ...
0
votes
2answers
309 views

Does mogrify copy images that fall through resize filter?

I want to run the following command: mogrify -path /somepath -resize '1600x1600>' * are Images, that don't exceed the size of 1600x1600 copied to /somepath? (I am asking, since they would fall ...
81
votes
6answers
81k views

How to install rmagick on Ubuntu 10.04?

Here's what I've done so far: sudo apt-get install imagemagick libmagickcore-dev This did not throw any errors, so I think that ImageMagick is installed fine. Then I tried installing the gem: sudo ...
0
votes
2answers
824 views

imagemagick “CONVERT” command finer points under Ubuntu 10.4

I'm struggling a little with the command line running imagemagick. I need to convert many .jpg files to many PDF files. Each PDF has one jpg contained inside. I fount lots of tutorials on how to ...
6
votes
5answers
10k views

How to install RMagick RubyGem on Mac OS X 10.6 Snow Leopard?

I am getting this error while trying to install RMagick: $ sudo gem install rmagick Building native extensions. This could take a while... ERROR: Error installing rmagick: ERROR: Failed to ...
1
vote
1answer
508 views

How can I set a minimum thumbnail size with ImageMagick?

I'm trying to create thumbnails of JPG photos using ImageMagick's convert tool. The thumbnails need to have a defined size (210x159), no blank areas, and the image can be cropped if necessary. ...
1
vote
1answer
3k views

Imagemagick convert with resample option

I am creating thumbnails from much larger images and have been using this command successfully for some time: convert FILE -resize "64x" -crop "64x64+0+16" +repage -strip OUTFILE I also do some ...
2
votes
2answers
3k 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
1k views

Imagemagick PDF to JPG conversion failing

I'm trying to convert the first page of a PDF to a JPG. I'm pretty sure I got this to work with certain PDFs, but is it really possible that certain PDFs are made incorrectly and cannot be converted? ...
0
votes
2answers
1k views

ImageMagick convert

convert is not working on the Linux server I am using $ convert exploss_stumps.jpg exploss_stumps.eps convert: missing an image filename `exploss_stumps.eps' @ convert.c/ConvertImageCommand/2838 ...
4
votes
5answers
2k views

Is there a server-side video manipulation software?

I'm looking for a hosted or self-hosted solution that will allow me to manipulate video files that are uploaded to a server by an end-user. Does anyone know of any solutions - open source or ...
2
votes
2answers
2k views

Cannot run 'display' after ImageMagick install on Ubuntu

I'm trying to install ImageMagick to my Ubuntu box. I've run the following command: sudo aptitude install imagemagick Now whenever I try to run 'display' from the command line, I get an error ...