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
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
642 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
493 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
14k 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
545 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
525 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
817 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
366 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
551 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
786 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
378 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
387 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 ...
51
votes
2answers
33k 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
999 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 ...
4
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
644 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
533 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
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
515 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
479 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
327 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 ...
57
votes
1answer
41k 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
301 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
181 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 ...
9
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
409 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
653 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
938 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
633 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
572 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
643 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 ...
1
vote
1answer
3k 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
707 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
1k 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 ...
8
votes
3answers
9k 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
407 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, ...