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

8404 questions
459
votes
18 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
  • 18,296
  • 27
  • 93
  • 139
356
votes
18 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
  • 10,116
  • 9
  • 33
  • 49
354
votes
12 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
  • 3,812
  • 2
  • 8
  • 11
335
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,401
  • 2
  • 9
  • 4
325
votes
16 answers

Replace transparency in PNG images with white background

I've got some PNG images with transparency, and I need to create versions with the image layer composed onto a white background. I've tried various things with Image Magick "convert" operations, but either nothing happens at all or I get an error. …
Pointy
  • 371,531
  • 55
  • 528
  • 584
277
votes
10 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
  • 3,513
  • 3
  • 18
  • 25
239
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,200
  • 3
  • 18
  • 19
186
votes
2 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,295
  • 10
  • 39
  • 54
174
votes
20 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
  • 24,450
  • 15
  • 96
  • 130
144
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
  • 40,640
  • 31
  • 100
  • 109
139
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
  • 11,778
  • 9
  • 34
  • 54
132
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
  • 2,852
  • 4
  • 32
  • 51
115
votes
8 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…
Michael Berkompas
  • 2,552
  • 3
  • 17
  • 22
112
votes
5 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
  • 1,929
  • 3
  • 13
  • 14
96
votes
2 answers

Convert PDF to PNG using ImageMagick

using ImageMagick, what command should i use to convert a PDF to PNG? I need highest quality, smallest file size. this is what I have so far (very slow by the way): convert -density 300 -depth 8 -quality 85 a.pdf a.png Looking at what Gmail does…
StackOverflowNewbie
  • 35,023
  • 98
  • 252
  • 421
1
2 3
99 100