Questions tagged [imagemagick]

ImageMagick is an open source software suite for displaying, converting and editing raster image files.

The software mainly consists of libraries and a number of utilities for manipulating images.

File format conversion

One of the basic and thoroughly-implemented features of is its ability to efficiently and accurately convert images between different file formats. Over 100 different formats are supported.

Language Bindings

There are ImageMagick bindings for most popular programming languages including , , , , , , , , , , , and . There are also bindings for which only operate in Mac OS X and Linux, not iOS.

Distribution

is cross-platform, and runs on all recent versions of Microsoft Windows (except Windows 95), and Unix-like systems including Mac OS X, Linux, Solaris, and FreeBSD. The project's source code can be compiled for other systems, including AmigaOS 4.0 and MorphOS.

Resources

9193 questions
769
votes
14 answers

ImageMagick security policy 'PDF' blocking conversion

The Imagemagick security policy seems to be not allowing me perform this conversion from pdf to png. Converting other extensions seem to be working, just not from pdf. I haven't changed any of the imagemagick settings since I installed it... I am…
T. Zack Crawford
  • 7,646
  • 3
  • 11
  • 18
578
votes
20 answers

How to convert a SVG to a PNG with ImageMagick?

I have a SVG file that has a defined size of 16x16. When I use ImageMagick's convert program to convert it into a PNG, then I get a 16x16 pixel PNG which is way too small: convert test.svg test.png I need to specify the pixel size of the output…
kayahr
  • 20,913
  • 29
  • 99
  • 147
415
votes
24 answers

Convert PDF to image with high resolution

I'm trying to use the command line program convert to take a PDF into an image (JPEG or PNG). Here is one of the PDFs that I'm trying to convert. I want the program to trim off the excess white-space and return a high enough quality image that the…
JBWhitmore
  • 11,576
  • 10
  • 38
  • 52
395
votes
17 answers

Replace transparency in PNG image with white background

I have a PNG image with an alpha channel (i.e. transparency), and I need to create versions with the image layer composed onto a white background. I want to use a scriptable command using a CLI tool such as Image Magick to directly convert PNG to…
Pointy
  • 405,095
  • 59
  • 585
  • 614
351
votes
11 answers

convert:not authorized `aaaa` @ error/constitute.c/ReadImage/453

I want to create a captcha pic by use convert from ImageMagick. And I follow this, but there are some problem . Input In my linux shell: convert -background white -fill black -font FreeSerif-Bold -pointsize 36 label:'adfgh' ./test.png The Error…
jianwei
  • 3,561
  • 3
  • 11
  • 4
328
votes
11 answers

Recommendation for compressing JPG files with ImageMagick

I want to compress a JPG image file with ImageMagick but can't get much difference in size. By default the output size is bigger than the input. I don't know why, but after adding some +profile options and setting down the quality I can get an…
Javis Perez
  • 4,130
  • 3
  • 23
  • 27
241
votes
25 answers

rmagick gem install "Can't find Magick-config"

I get the error shown below when attempting to install the rmagick gem. I am on Snowleopard 10.6 using RVM, Ruby 1.9.2-head and Rails 3.05. Responses to similar questions recommended installing ImageMagick, which I successfully did. Other suggested…
Joe
  • 3,352
  • 3
  • 20
  • 19
215
votes
3 answers

“Diff” an image using ImageMagick

How can I get the difference between two images? I have the original image. Someone has written on an exact duplicate of the original image. Now, I need to compare the original to the written on image and extract just the writing in image…
Justin Noel
  • 5,945
  • 10
  • 44
  • 59
188
votes
21 answers

RMagick installation: Can't find MagickWand.h

Updating RMagick and Imagemagick is a painful expierence. I have updated the Imagemagick version on my mac (MacOS El Capitan Version 10.11.5) with homebrew for one project in Ruby 2.3 to 6.9.5-9 $ convert --version Version: ImageMagick 6.9.5-9 Q16…
0x4a6f4672
  • 27,297
  • 17
  • 103
  • 140
182
votes
10 answers

How to remove EXIF data without recompressing the JPEG?

I want to remove the EXIF information (including thumbnail, metadata, camera info... everything!) from JPEG files, but I don't want to recompress it, as recompressing the JPEG will degrade the quality, as well as usually increasing the file…
Denilson Sá Maia
  • 47,466
  • 33
  • 109
  • 111
163
votes
8 answers

Set transparent background using ImageMagick and commandline prompt

Suppose you have any image (PNG or JPG). This image has a white background and I need to make this background transparent. I have tried with these examples: convert original.png -background none transparent.png convert original.png -background…
Israel
  • 3,252
  • 4
  • 36
  • 54
150
votes
6 answers

Merge Images Side by Side (Horizontally)

I have five images of sizes: 600x30, 600x30, 600x30, 600x30, 810x30. Their names are: 0.png, 1.png, 2.png, 3.png, 4.png, respectively. How do I merge them Horizontally to make an image of size 3210x30 with ImageMagick?
Sasuke Kun
  • 2,449
  • 3
  • 15
  • 14
140
votes
15 answers

Ruby: Installing rmagick on Ubuntu

I'm trying to get RMagick setup on Ubuntu 10.04. Looked here but had no joy. I even compiled and installed ImageMagick from source, but the instructions here still didn't help me when I try to install RMagick using RubyGems. I got this…
Ciaran Archer
  • 12,316
  • 9
  • 38
  • 55
124
votes
9 answers

Convert SVG image to PNG with PHP

I'm working on a web project that involves a dynamically generated map of the US coloring different states based on a set of data. This SVG file gives me a good blank map of the US and is very easy to change the color of each state. The…
Mike B
  • 2,660
  • 3
  • 20
  • 22
121
votes
3 answers

Imagemagick: Convert to fixed width, proportional height

Using the imagemagick convert command, how can I resize an image to a fixed width and proportional height e.g. using the -resize or the -thumbnail option?
Christof Aenderl
  • 4,233
  • 3
  • 37
  • 48
1
2 3
99 100