Questions tagged [imagemagick]

ImageMagick is an open source software suite for displaying, converting and editing raster image files.

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

The software mainly consists of libraries and a number of utilities for manipulating images.

File format conversion

One of the basic and thoroughly-implemented features of is its ability to efficiently and accurately convert images between different file formats. Over 100 different formats are supported.

Language Bindings

There are ImageMagick bindings for most popular programming languages including , , , , , , , , , and .

Distribution

is cross-platform, and runs on all recent versions of Microsoft Windows (except Windows 95), and Unix-like systems including Mac OS X, Linux, Solaris, and FreeBSD. The project's source code can be compiled for other systems, including AmigaOS 4.0 and MorphOS.

496 questions
272
votes
2 answers

Vertically stack 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 to turn them into one image with the original…
Petter
  • 2,831
156
votes
2 answers

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 first brew uninstall imagemagick or go ahead and…
Meltemi
  • 7,097
  • 11
  • 33
  • 30
101
votes
5 answers

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 gem install rmagick This resulted in the following…
Andrew
  • 15,494
99
votes
3 answers

Can't convert PDF into image, because of 'no images defined' error

I've the following PDF file: http://www.fmwconcepts.com/misc_tests/pdf_tests/test.pdf But when I'm trying to convert it via: $ convert test.pdf test.png I've the following error: convert: no images defined `test.png' @…
kenorb
  • 26,615
93
votes
3 answers

Invert colors with ImageMagick

How do I invert the colors of an image using the ImageMagick convert tool, so that black becomes white and white becomes black? In other words, I want to turn this: into this:
Jo Liss
  • 4,518
82
votes
3 answers

Appending images vertically in ImageMagick

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

How to crop an image using ImageMagick from the command line?

I am trying to crop a 640x640 image using ImageMagick on the command line. I need to remove about 20 pixels from the bottom part of the image all the way from left to right. A long strip along the bottom. I know about the shave command. What would…
user2041357
68
votes
6 answers

How to merge pdf:s using Imagemagick (resolution problem)

When I try to merge two .pdf files using Imagemagick convert pdf1.pdf pdf2.pdf temp.pdf the resulting temp.pdf file seems to have very low resolution. How can I keep the resolution same as in the source files?
jraja
60
votes
5 answers

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 Values X-Resolution and Y-Resolution which are…
36
votes
8 answers

Square thumbnails with ImageMagick (convert)?

How to create square/cropped thumbnail using ImageMagick ? Cropping like below.
marioosh
  • 3,651
33
votes
3 answers

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 the output I actually get: On my browser (Firefox…
Kevin
  • 1,623
  • 3
  • 13
  • 10
32
votes
4 answers

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?
ohho
  • 3,124
30
votes
1 answer

Stack images vertically and center

I have several images of different widths and heights that I would like to stack vertically about their respective centers. I've tried convert 1.jpg 2.jpg 3.jpg -append out.jpg But this aligns them to the left, I'd like it to be center-aligned.
bmikolaj
  • 403
29
votes
2 answers

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 I cannot figure out what the command is. Anyone…
27
votes
1 answer

Convert PDF to JPG images with ImageMagick - how to 0-pad file names?

I convert a pdf file to jpg images by using ImageMagick like this: convert -density 600 foo.pdf foo.jpg The created jpg images are named foo-1.jpg, foo-10.jpg and so on. Is there way to 0-pad the output file names to foo-01.jpg etc.?
ironsand
  • 2,489
1
2 3
33 34