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
158 views

ImageMagick failed to convert colors in PDF

I have got a PDF document containing a red font which I want to replace by a black font. I tried the following command according to this answer: convert -density 300 doc.pdf -fill black -opaque ...
0
votes
0answers
59 views

Gif output not as smooth when selecting a sequence of files individually

I have a sequence of images 001.png 002.png 003.png that I would like to combine into an animation. I used the following command convert -dispose 3 -loop 0 *.png out.gif And it looks ok. However, ...
0
votes
1answer
196 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 ...
0
votes
1answer
2k views

How to auto-trim scanned images using imagemagick or graphicsmagick?

I've got some scanned images in *.jpg format. They are scanned using A4 scanner, in greyscale or colour. Scanned pages have very different dimensions - some A5, some A6, some business cards etc. ...
3
votes
1answer
173 views

Convert image to pdf a5 with not empty areas

I'm using this command mogrify -format pdf -page a5 iguana2.jpg to convert a jpg file into a pdf. The problem is that the result has a white border. I'd like the image to full fill the a5 page ...
1
vote
1answer
409 views

make directory if it doesn't exist with `mogrify -path` command

I convert images in a directory named foo to bar by like this. $ mkdir bar $ mogrify -path bar -negate foo/*.png Is there option in Imagemagick that create a folder with -path option, if it not ...
1
vote
1answer
177 views

What is wrong with this attempt to crop an image with ImageMagick's convert utility?

I am trying to make a tool that will, in imitation of responsive design on the web, make iPhone / iPad wallpapers by taking the largest centered crop-to-device-dimensions it can, and programmatically ...
0
votes
1answer
179 views

Apply opacity mask and annotate watermark with imagemagick

I'm trying to find a way to apply a watermark and opacity mask for an image using imagemagick. How do I do it? Source Result Thank you all for reading.
3
votes
2answers
881 views

Convert BMP to PNG while preserving alpha channel

I have an image stored in BMP format and would like to convert it to PNG using imagemagick. I looked at the pixels in a hex viewer and noticed that they are stored in 32bpp, so there is an alpha ...
0
votes
0answers
125 views

Hue/saturation adjustment by ImageMagick

When I scan a old book that is turned yellow, I remove the yellow by using Photoshop like this. open Adjustment -> Hue/Saturation select Yellows and set Lightness to 100 select Reds and set ...
4
votes
1answer
7k 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 ...
0
votes
2answers
418 views

How to pass a list of files to ImageMagick's montage?

I have a large number of tiles, with the following naming convention: A-x-y.jpg where 0<=x<=16 & 0<=y<=14 Now I know that we can use the Montage tool in ImageMagick, to merge ...
2
votes
1answer
752 views

ImageMagick mogrify does not overwrite original files

I would like to convert image formats. I can use 'convert' command, but it made another image. So I searched and find 'mogrify' command in ImageMagick official page. What I did was mogrify ...
2
votes
2answers
313 views

Imagick Convert Append 2 pdf pages

I am using the following code to make a single pdf file with multiple pages in one jpg file I am using Imagick library and PHP tcpdf convert -append path1.pdf path2.jpg Now what i need to do is to ...
1
vote
1answer
87 views

get rid of transparency of selected part of png using imagemagic

I have this png image with transparency http://s18.postimg.org/d2h2m4yl5/flatten_canvas2.png I want to get rid of transparency using imagemagick, but only of the selected part and not the whole ...
4
votes
1answer
3k views

Can ImageMagick make thumbnails from video?

I'm trying to extract thumbnails from video via ImageMagick. I found some samples from their official site, but it makes GIF, not PNG. I want a solid thumbnail though. Can it create the same output ...
4
votes
2answers
2k views

ImageMagick Convert: How to produce sharp resized PNG files from SVG files?

I am using this command to generate a sharp 512px wide version of an SVG file that I have: convert -geometry 256 pinterest.svg pinterest.png This is the source file: <?xml version="1.0" ...
0
votes
1answer
722 views

CentOS 6.3: yum install ImageMagick, identify and convert don't work

I ran "yum install ImageMagick" on our CentOS 6.3 server, which worked fine, but identify -version and convert don't work (-bash: /usr/local/bin/identify: No such file or directory). I originally ...
0
votes
1answer
425 views

How can I run mogrify, but prefix the filename?

I have 300k+ jpg files in the same directory. Files are like: /covers 0788862281217.jpg 0788863155104.jpg 7888311516341.jpg 7888370920479.jpg 7888497074277.jpg I need to batch resize saving the ...
0
votes
1answer
115 views

Cutting in half and rearranging pages of tif document

I scanned in a booklet, and now I have a tif file with "pages" composed of two real pages each, in the order 6/7,5/8,4/9,3/10,2/11,1/12. Is there a way (tool, imagemagick command, etc.) to slice each ...
1
vote
2answers
107 views

Averaging subsets of images with imagemagick, iteratively

I have a hundred images and I want to average them 5 at a time. The imagemagick command for the first 5 is: convert -background transparent %d.jpg[1-5] -average output1.jpg The imagemagick ...
2
votes
1answer
698 views

imagemagick image conversion piped in avconv fails

I am trying to write a script that should take all sort of images (format, size...) and create a video with avconv. I've managed to make it work with a series of jpg (all the same size though) and I'm ...
9
votes
1answer
483 views

Tile animated gifs

Is there some way to use imagemagic / montage to tile looped animated gifs (intermixed with nonanimated ones)? That is, I want to concatenate the animations in space, not in time. I realize that the ...
2
votes
1answer
208 views

convert image at command line to console stream

I'm looking for something like ImageMagick's "convert" but that outputs to the console. The obvious answer is "create a temp file and cat that" but I'd prefer not to have to go to the trouble. Are ...
1
vote
1answer
108 views

Converting PDF to images preserving the vectorial quality

I'm using ImageMagick to convert some PDF to files to PNG images, and I'm experiencing some quality problems because the generated image has very low quality. I played with the density, resample, ...
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, ...
19
votes
2answers
4k views

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 ...
2
votes
1answer
1k views

Unable to execute port when installing ImageMagick

I'm trying to install ImageMagick by using MacPorts. I've successfully installed MacPorts by using their Mountain Lion .pkg file. I open the terminal and run: sudo port install ImageMagick However ...
0
votes
1answer
184 views

Automatically name output of montage based on input files

I have a folder with images separated into channels: IMAGE_A_R.jpg IMAGE_A_G.jpg IMAGE_A_B.jpg IMAGE_A_RGB.jpg IMAGE_A1_R.jpg IMAGE_A1_G.jpg IMAGE_A1_B.jpg IMAGE_A1_RGB.jpg IMAGE_B_R.jpg ...
2
votes
1answer
950 views

Use imagemagic to put several JPG on one page

I have a folder full of jpg files. When I use the following command, convert *.jpg assembly.pdf I get a pdf file with one image per page of the pdf. I would like to put 9 images on each page. Is ...
3
votes
1answer
218 views

transparent gradients with graphicsmagick

I'm trying to create a gradient that goes from transparent to some color. With imageMagick you can do that with (taken from the documentation): convert -size 100x100 gradient:none-firebrick ...
1
vote
1answer
205 views

Imagemagick batch converting memory overload

I must to convert about billion of images from jp2 to jpg... I create such .bat for /d %%d in (*) do ( for %%f in ("%%~d\*.jp2") do ( convert -limit memory 0 -limit map 0 "%%~ff" -quality 25 ...
0
votes
1answer
481 views

Batch convert with imagemagick jp2 to jpg

What command i need to run to put in img/ folder with same name on ubuntu jpg file with 35% quality converter from jp2? On windows i run such bat: for /d %%d in (*) do ( for %%f in ("%%~d\*.jp2") ...
2
votes
1answer
1k views

generating video slideshow with avconv but maintaining image ratio

This may have already been answered.. but I'm struggling to search for it! I have a set of images, of varying dimensions that I've created a 'fade affect' with, using imagemagicks convert command. ...
0
votes
1answer
579 views

Transparency issues when converting png's to gif

I am using imagemagick's convert to take a set of PNG's and convert to GIF. The command I am using is convert -delay 10 -loop 0 *.png out.gif I like the results as there is little drop in visual ...
0
votes
1answer
84 views

What is the Ubuntu package for Image Magick Wand Development?

What is the Ubuntu package for Image Magick Wand Development ? Please help. apt-get install ....
3
votes
1answer
724 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 - ...
1
vote
1answer
816 views

Macports Imagemagick Install for PHP

I'm trying to install Imagick for PHP via Macports and the PECL extension, based on the guide here: sudo port install ImageMagick sudo pecl install imagick I entered the opt/local path and setup ...
0
votes
2answers
418 views

Why am I getting “No such file or directory” after install?

If I command convert --version it shows this. bash: /usr/bin/convert: No such file or directory All what I did was this 1. $ wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz 2. $ ...
3
votes
1answer
4k views

How can I remove “ImageMagick” completely?

I think I accidently did install 2 ImageMagicks to my CentOS 5.8 before. Version 6.2.8 was removed by yum erase ImageMagick However, it still shows this when I typed $convert -version Version: ...
0
votes
0answers
230 views

ImageMagick video filter for FFmpeg

I'd like to apply some non-trival video operations on a per-frame base. So far, I've been using shell scripts + ImageMagick + FFmpeg, decomposing the video into individual frames on disk, processing ...
1
vote
1answer
171 views

ImageMagick Append Image sequence Filenames

I am using the animation tool Synfig to export a sequence of .png files. These are in the following format: C1.0000.png , C1.0001.png, C1.0002.png and so on. I want to convert these to a spritesheet ...
0
votes
1answer
804 views

PDF to PNG with ImageMagick/GhostScript: Colorspace=sRGB breaks script

In order to convert a PDF with 100 pages to single PNG files, I've been using the following command: C:\Program files\ImageMagick\convert -density 150 -alpha Opaque file.pdf file.png But that ...
0
votes
1answer
214 views

Can't Start Apache on on Snow Leopard. “libphp5.so requires version 13.0.0 or later, but libjpeg.8.dylib provides version 9.0.0”

To cut a long story short, I was trying to compile and get ImageMagick working on my Mac running Snow Leopard. One thing led to another and now I am stuck with the following error message when I try ...
3
votes
1answer
319 views

How do I use cpulimit with ImageMagick?

I am converting (using ImageMagick) a directory of image files (using a bash for loop in shell). I notice that "convert" is taking up a large amount of CPU use (88% and up). However, If I try to ...
0
votes
1answer
1k views

Installing imagick on OS X with MAMP 2.1.1

I sincerely hope someone here can help me before I lose all my hair. I'm developing a php web app requiring imagick extension and want to test it locally. I have os x 10.8.2 (Mountain Lion) and MAMP ...
0
votes
1answer
5k 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: ...
5
votes
1answer
1k views

Convert grayscale image into alpha channel image in unix shell

I have a gray-scale image. I want to convert it into an transparent PNG, such that the black pixels (in the original image) become fully opaque, the white pixels become fully transparent, a 50% grey ...
2
votes
1answer
438 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?
0
votes
0answers
139 views

batch split note scans with automatic recognition of parts in page

I regularly use paper to make notes and concepts for most things, work and others. To be quick when having an idea I note them one after another, just to make sure I find things later, I use paper ...