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

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
307 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
133 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
963 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
660 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 ...
9
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
509 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
8answers
15k 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
267 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
558 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
537 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
864 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
373 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
579 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
799 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
206 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
296 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
384 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 ...
1
vote
1answer
395 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 ...
52
votes
2answers
34k 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
1k 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
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
661 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
541 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
2k 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
520 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
6k 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
497 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
329 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 ...
60
votes
1answer
44k 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
318 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
182 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 ...
11
votes
6answers
11k views

Square thumbnails with ImageMagick (convert)?

How to create square/cropped thumbnail using ImageMagick ? Cropping like below.
5
votes
3answers
5k 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: ...
1
vote
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
417 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
655 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
949 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 ...
1
vote
1answer
644 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
576 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
650 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
192 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 ...