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
0answers
116 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
1answer
178 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
2answers
244 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 ...
1
vote
0answers
132 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
73 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
173 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 ...
1
vote
2answers
254 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) ...
2
votes
1answer
348 views

Windows command line ImageMagick percent escapes

I'm trying to use ImageMagick from the command line in Windows 7 to convert many images at once. I would like to use the -set option interface, but I'm getting unexpected results. A short example of ...
1
vote
0answers
202 views

Using imagemagick or gifsicle to output GIF with specific filesize?

I have been following this online guide to convert a small video clip into image frames, then combine them together into a single animated GIF. The problem I'm having is that each GIF tends to be ...
2
votes
1answer
86 views

Converting images of different dimensions into a gif with maximum dimensions

I have a set of images for an animation, but not all of the dimensions are the same. Some may be 100x100, others might be 99x105, a few with 110x100, and so on. If I did a simple convert *.png ...
2
votes
1answer
174 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 ...
1
vote
0answers
64 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
213 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 ...
1
vote
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
191 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
451 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
194 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
197 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
1k 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
144 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
10k 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
500 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
903 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
322 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
88 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
804 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 ...
1
vote
1answer
506 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
137 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
111 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
736 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
491 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
241 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
114 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
2k 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
3answers
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
203 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
1k 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
246 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
218 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
557 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
634 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
96 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
829 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
875 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
459 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: ...