The "convert" command, from the ImageMagick® software suite is a program to convert between image formats as well as resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more.
Questions tagged [imagemagick-convert]
1387 questions
4
votes
1 answer
Problems converting PDF to BMP using ImageMagick?
I would like to convert a PDF to BMP. The PDF I am talking about is available here.
I use ImageMagick with the following command :
convert -verbose -resize 256x256 phantom-brain-ellipse.pdf phantom.bmp
But the result is a phantom.bmp file…
user813853
4
votes
1 answer
ImageMagick convert - Label text over alpha background
I'm trying to place a copyright message on a large batch of PNG images. I'd like to place the message in the bottom-right corner in black text on a semi-transparent white background. Here's my Windows command line script which loops through the…

Warren Vick
- 81
- 6
4
votes
2 answers
ImageMagick multiple operations in single invocation
I'm trying to get ImageMagick to perform multiple operations (in this case, crops) in a single invocation, but it doesn't seem to be possible. For example, I can do a crop, rotate, and then another crop as two separate commands:
$ convert test.jpg…

Michael
- 9,060
- 14
- 61
- 123
4
votes
1 answer
Image cropped while converting from SVG to PNG using ImageMagick
I have a SVG file similar to
http://www.fileformat.info/info/unicode/char/00c1/latin_capital_letter_a_with_acute.svg
When I use ImageMagick to convert it to a PNG like this:
convert latin_capital_letter_a_with_acute.svg tmp.png
then only the top…

dors
- 1,152
- 11
- 19
4
votes
1 answer
Using ImageMagick to add whitespace to images in bulk
I have a bunch of images that are rectangular and I need them to be square, i.e. 1000x1000, so I've decided to use ImageMagick to pad the sides of the image with the amount of whitespace necessary to make the image square.
I've found the code from…

giwook
- 570
- 4
- 11
- 23
4
votes
3 answers
Animated GIF of binary tree insertion
I am trying to produce an animated gif of simple binary tree insertion using the dot and convert utilities of ubuntu. But it is not exactly working as I want. The animated gif which I get at the end does not show the complete tree and only shows the…

l0k3ndr
- 536
- 5
- 24
4
votes
1 answer
Installing missing ImageMagick delegate libraries - OSX 10.8
I am working to get ImageMagick installed via homebrew with a few options being passed for the update. But from what I can tell there doesn't seem to be a way to do this on Mountain Lion as it seems to have a pre 'bottled' formula. The two delegates…

corbanb
- 149
- 10
4
votes
1 answer
Applying custom ImageMagick (GraphicsMagick) envelope distortion to text
I want to generate text like this using ImageMagick:
I have the font as a TTF file and know how to generate an image with just the undistorted text. What I'm having trouble with is applying the distortion.
The "envelope" I want to use looks like…
user636044
4
votes
2 answers
Imagemagick converted image is blurry
I m using ImageMagick command line utility to convert images. I have a large size say (800x300 px) transparent tif image and I want it to convert it to cmyk tif, but the resulting image is blurry. how can I fix this?
What I have so far…

WatsMyName
- 4,240
- 5
- 42
- 73
4
votes
1 answer
ImageMagick with Visual Studio
I'm trying to write a sample ImageMagick program in Visual Studio 2010. I have binary distribution of ImageMagick already installed on my system as I can use command line interface of ImageMagick.
However, when I try to include "Magick++.h" in my…

pree
- 2,297
- 6
- 37
- 55
4
votes
1 answer
Convert psd to png giving via imagemagick giving garbage output
I'm trying to run convert over a psd to create a png per layer. Running
$ convert psdname.psd output.png
creates the right number of pngs, but the content is totally garbled - like horizontal lines running across the…

gone
- 4,342
- 2
- 24
- 29
4
votes
1 answer
How to cut the transparent part of an image with perl Image::Magick?
I have a PNG image what is generated by convert from a PDF file. This PNG is letter size and transparent except the content part.
I use the Image::Magick perl module to manipulate images (like a newbie). The content start at 28x28px and the width is…

netdjw
- 5,419
- 21
- 88
- 162
4
votes
1 answer
ImageMagick: converting PDF color profile creates giant PDF?
I am using the following command:
convert sourcefile.pdf -profile "cmyk.icc" -profile "srgb.icc" +profile "*" output.pdf
On a test 3MB file, it creates a 20MB PDF that is horrible quality.
If I add in a -density 600 parameter, the file explodes to…

Kaitlyn2004
- 3,879
- 4
- 16
- 16
4
votes
1 answer
Imagemagick Convert creating a very pixelated image
I use imagemagick to create thumbnails from images on my website using convert like so: convert -size 220x220 %s -resize 220 -profile '*' %s", $image, $thumb and this has worked great for a long time. Thousands of images have been processed and all…

Josh Mountain
- 1,888
- 10
- 34
- 51
3
votes
0 answers
How to add a cover to a pdf file from an image and from a bash command line?
Given an image and a pdf file, say image.png and a file.pdf, I need to add the image as the first page of the pdf file, in order it has the same dimensions as the other pages, and in order to be recognized by any thumbnailer.
If I do :
size =…

lalebarde
- 1,684
- 1
- 21
- 36