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

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... ...
0
votes
1answer
171 views

Convert file to 24bit bitmap

I'm using imagemagick convert to convert this image http://i.imgur.com/P1uqj9K.jpg to a bmp. However for some reason the tool I am using doesn't like the bitmap. If I save the image as a png and ...
0
votes
1answer
4k views

Why do I keep getting this Imagemagick error?

I currently used this code for Imagemagick: convert "c:\users\****\My Documents\test.png" -transparent white test2.png However, I keep on getting two errors that look like this: convert.exe: ...
0
votes
0answers
22 views

imagemagick convert tiff degrades quality, how to prevent it?

I am using imagemagick convert to extract multiple tif images from a single tif file. But when I use the following command convert image.tif single%d.tif I get very low quality (sort of blurred) ...
1
vote
1answer
38 views

Use 'find' command to search for PNG files, pipe output to imagemagick for batch conversion

I've got a directory with thousands of image files, mostly JPG but some PNG. The files have no extension, they're just numbered. I need to convert all of them to JPG. Using find I can get a list of ...
2
votes
1answer
35 views

ImageMagick - Creating animated GIF from tiled image, having trouble with “virtual canvas” metadata

I have an image that contains smaller images similar to this: ------ | 1 | ------ | 2 | ------ | 3 | ------ | 4 | ------ Each sub-image is 100x200, and the whole image is 100x800 I would like ...
0
votes
2answers
17 views

How can I batch with ImageMagick command?

I'm doing convert dead0000.bmp -alpha on -fill none -draw 'color 0,0 replace' dead0000.png but I have a few thousand files. Is there any way to just do the whole directory at once?
0
votes
1answer
38 views

Why does ImageMagick's montage limit the JPG output to 65500 instead of 65535?

JPEG/JFIF supports a maximum image size of 65535×65535 pixels. Is there any reason why ImageMagick's montage limit the JPG output to 65500 instead of 65535?
2
votes
3answers
45 views

How to batch convert multi-page PDF into individual jpg files

I found these posts on converting a PDF to JPG using ImageMagick. However, I have a 12 page PDF I want to convert into 12 separate high quality jpg files. Looking for the least tedious way possible. ...
2
votes
2answers
1k views

Getting the predominant colour in an image?

Is it possible to get the predominant colour in an image from the command line? Ideally I'd like it back as hex or RGB. I thought it might be possible to do this with imagemagick's identify command, ...
0
votes
0answers
22 views

imagemagick draw text word wrapping

I have this script, which writes text to images. echo \\n"List? {y/n}" read cont if [ "$cont" = "y" ] || [ "$cont" = "Y" ] then rm -rf sponsors.txt ls *.jpg *.png *.gif -1 > sponsors2.txt ...
1
vote
0answers
94 views

Using avconv to convert an animated gif to mp4 with sound

I want to convert an animated gif and a midi (music) file into a mp4 video. Is it possible? I saw a lot of topics on documentation, foruns and stackexchange sites, but I didn't find. It works with 1 ...
0
votes
0answers
19 views

Toold for vector-to-vector conversions (SVG/PDF to EMF/EPS)

I used the convert of IM to translate svg to eps. But apparently ImageMagick rasterized it. Is there a mode to do vector-to-vector conversion? Inkscape does not reproduce transparent areas and ...
0
votes
0answers
13 views

How to create multiple images of montages using ImageMagick

I can create a montage from a folder of images using ImageMagick. Simple enough. However I have 100+ images that are about 640x400 a piece. I want to have a contact sheet of about 2 images by 3 ...
1
vote
0answers
33 views

ImageMagick: is there a way to get the same PNG from the same image on multiple platforms?

I have a script for converting game assets to multiple resolutions, via imagick, and when I run the same imagick commands on Mac and Windows (with the same version of imagick - ImageMagick 6.8.7-2), ...
7
votes
6answers
8k views

Square thumbnails with ImageMagick (convert)?

How to create square/cropped thumbnail using ImageMagick ? Cropping like below.
0
votes
1answer
59 views

Imagemagick text to file batch

I want to convert text to images, but the text varies. I would like to make this a batch job. This is my first stab at the problem: #!/bin/bash COUNT=$(ls -f *.jpg *.png *.gif | wc -l) for f in $( ...
0
votes
1answer
5 views

How do I make weighed average (using alhpa channel as weight) of pictures?

I have multiple similar pictures I want to make aveage of, but not uniformatically. Each zone in pictures should have separate weight, and the weight is encoded in alhpa channel (fully transparent - ...
1
vote
1answer
27 views

Resize/crop multiple files while preserving certain areas?

I have 176 JPEG images that are 450x800 in size, and was wondering if there was a way to essentially resize them, but while preserving their content in certain areas (currently I'm only hoping for the ...
0
votes
2answers
259 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
1answer
18 views

Positioning images on page using imagemagic

I use the command convert *.png -flip -page 2647x3745+50+50 doc.pdf to produce a pdf from scanned images. I put the option flip in because convert uses the lower-left corner instead of upper-left ...
0
votes
0answers
22 views

Adding bleed margins to CSS sprites with ImageMagick

I have a CSS spritesheet with equal-sized sprites. I want to add a 1-pixel margin to each sprite, and extend each sprite's outermost pixel into that margin -- basically a full bleed effect for each ...
3
votes
1answer
5k views

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 ...
4
votes
1answer
159 views

Unable to install Imagemagick on Ubuntu 12.10

I've got a virtual machine running on Ubuntu 12.10. When I try to run apt-get install imagemagick I get several 404 errors: Err http://archive.ubuntu.com/ubuntu/ quantal-updates/main libcups2 ...
0
votes
2answers
64 views

How can I run mogrify over the 3 million JPG files?

I have 3 million JPG files stored in a Linux CentOS 6 server. I want to change quality to %50 file size over 1 megabyte. I wrote this command but got an "argument list too long" error: $ find -type ...
0
votes
0answers
105 views

ImageMagick 'convert' Doesn't Convert JPG to PNG

I'm trying to convert a JPEG to a PNG using ImageMagick. Should be easy, right? What am I doing wrong? ╭ ~/tmp2 ilesm@mb-ilesm.local ╰ % convert -version ...
1
vote
1answer
37 views

How to convert a directory of JPGs to multi PDF files?

I'm searching for a batch command that will convert a directory of JPGs to many PDF files. In order to convert JPGs to JPGs, i use the following command: mkdir tmp; find . -name "*.jpg" -exec convert ...
1
vote
2answers
50 views

What causes import command to fail as running through a service

Our System V service runs a daemon that runs the import command. Running our service by sudo service myservice start seems to start the service but when it comes to take a screenshot, import does not ...
0
votes
0answers
179 views

ImageMagick delegate library error

I have recently installed ImageMagick and I am trying to use it to convert postscript files to .gif images. I ran the post installation test: '/usr/local/bin/convert logo: logo.gif' This ...
0
votes
0answers
78 views

How to apply clut (Color Lookup Table) using ImageMagick command line

IamgeMagick dcouments its -clut option as "Replace the channel values in the first image using each corresponding channel in the second image as a color lookup table...This operator is especially ...
0
votes
0answers
73 views

ImageMagick installing TrueType Font Support

I am trying to install ImageMagick from source, but I can not get it to install truetype. $ ./configure Option Value ...
0
votes
1answer
179 views

Normalise levels, contrast, brightness of an image sequence

When making animated gifs or short stop-motion videos from an image sequence, I want them to have all similar levels so that the output looks smooth. It does not have to be a professional quality ...
2
votes
3answers
1k views

How to insert white space with imagemagick?

What parameters does "convert" (?) need to get this OUTPUT from this INPUT? INPUT: OUTPUT:
3
votes
1answer
617 views

Get crisp, clear thumbnails from MP4 with FFmpeg / ImageMagick

My ultimate goal is to get meaningful snapshots from videos that are either 30 min or 1 hour long. "Meaningful" is a bit ambitious, so I have simplified my requirements. The image should be crisp - ...
0
votes
1answer
161 views

ImageMagick for Windows not listing OpenCL as enabled

I'm trying to experiment with GPU-accelerated resize operations using ImageMagick. On my Windows machine, using convert -list configure lists only FEATURES OpenMP and not the OpenCL I expected since ...
0
votes
1answer
75 views

Transfer transparency from one image to another using imagemagick

I am trying to take the alpha channel from one image and apply it to another. In this particular case I want to "fix" the corners on the pink one. I want to use the alpha channel from the black one. ...
0
votes
1answer
155 views

Use GIMP color curve with ImageMagick

I created a color curve with GIMP. It looks like this: ~/.gimp2.8/curves/selphy (Just the first lines) # GIMP curves tool settings (time 0) (channel value) (curve (curve-type smooth) ...
0
votes
0answers
75 views

How to obtain a version of ImageMagick compiled for OpenCL (Linux)

For reasons I do not understand, ImageMagick requires a special compilation to make use of OpenCL drivers on the host machine. Does anyone know of a place where I can obtain a Linux version compiled ...
1
vote
1answer
220 views

Imagemagick killing colour quality when resizing image

I'm trying to resize a bunch (450+) of images through imagemagick, they all start at 500x500 and I've written a script to resize them to about 5 different sizes. Now I've converted them I notice that ...
37
votes
1answer
28k 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 ...
1
vote
2answers
106 views

Batch-processing images of documents to look like a fax

Let's say I have a photo or scan of a text document, possibly with some low-contrast watermark background. If it is a photo, in addition to the watermark there will be brightness gradients from the ...
3
votes
3answers
577 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!
1
vote
1answer
24 views

Imagick jpeg:size option not working on one server but not the other

Not sure if this should be posted here or on stackoverflow so figured this was the safer bet. I'm using Imagick to resize jpegs. This is part of the code $prehintSize = (int) $requestedWidth > ...
0
votes
0answers
72 views

Automatically resize image on the shorter side regardless of orientation in imagemagick

Im struggling to resize an image regardless of orientation using imagemagick, is the program that terrible that a basic detection method is not even included? Do I have to now go and check the ...
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
91 views

How to display a picture and print pixel coordinates when I click?

When using ImageMagick or similar command line tools it can be useful to know coordinates of some points in the image. How to display an image (with panning and zooming) and print coordinates of ...
1
vote
0answers
98 views

Best settings to convert massive pdf hiking maps to images using ghostscript/imagemagick

I did convert all of the Te Araroa Hiking Maps from PDFs to JPEGs so far. The original maps are 16-64MB PDFs, which take forever to load on my Android Phone. I converted them using Ghostscript and ...
0
votes
1answer
55 views

unable to rasterize svg with mask

This svg loads in fine in a browser (ffox, chrome, http://jsfiddle.net/9tT6T/), but inkscape and imagemagick just convert this as a white rectangle when exported as a png. How do I rasterize this svg ...
2
votes
1answer
378 views

How do I convert a .cdr file to .jpg using imagick API?

How do I convert a .cdr file to .jpg using imagick API? I have done conversion of .ai and .psd files, but .cdr file isn't working. What can I do to fix this problem?
2
votes
1answer
101 views

Does imagemagick support image scaling algorithms related to depixelization

I am currently using this plugin for Paint.NET that provides a number of image filtering functionality. http://forums.getpaint.net/index.php?/topic/23601-2d-image-scaling-algorithms/ I was looking at ...