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
64
votes
2 answers

Resize existing images to new style in paperclip & RMagick

I've been using paperclip to upload and auto-resize photos in my Rails app, and I love it. Only problem is about every other month my crazy manager decides he wants a new size to display the photos in. So I add a new style in my Photo model and all…
tybro0103
  • 48,327
  • 33
  • 144
  • 170
62
votes
3 answers

Can I access ImageMagick API with Python?

I need to use ImageMagick as PIL does not have the amount of image functionality available that I am looking for. However, I am wanting to use Python. The python bindings (PythonMagick) have not been updated since 2009. The only thing I have been…
bsktball11ch
  • 763
  • 1
  • 6
  • 6
60
votes
3 answers

imagemagick: create a .png file which is just a solid rectangle

I want to create a .png file which is just a solid color. This must be easy to do using ImageMagick but I can't figure out the problem: C:\tmp>convert -size 8x16 -stroke black -fill black -draw "rectangle 0,0,8,16" black.png Magick: missing an image…
Jason S
  • 184,598
  • 164
  • 608
  • 970
60
votes
3 answers

ImageMagick PDF to JPGs sometimes results in black background

I have the following: ghostscript-fonts-5.50-24 ImageMagick-6.7.2-1 ghostscript-9.02-1 Which I use to create a series of JPGs for each page using: convert -density 175 -colorspace sRGB test.pdf -resize 50% -quality 95 test.jpg When I run this on…
jahilldev
  • 3,520
  • 4
  • 35
  • 52
59
votes
5 answers

How do I control PDF paper size with ImageMagick?

I have 16 jpg files which are around 920x1200 pixels (the widths slightly differ but heights are all 1200). I'm trying to join them into a pdf with: convert *.jpg foo.pdf But the resulting paper size is 1.53x2 inches. If I pass the arguments -page…
mackstann
  • 1,287
  • 1
  • 10
  • 14
57
votes
4 answers

Add text on image at specific point using imagemagick

I want to add text on an image at specific point and want it be centre aligned. How can I specify to margin from top? I want to specify margin in pixels/inches from top. Currently I am using this command: convert temp.jpg -gravity Center …
waqas
  • 4,357
  • 3
  • 34
  • 42
56
votes
3 answers

Glueing tile images together using imagemagick's montage command without resizing

This seems like it might be a reasonably common question, so I'm going to ask it using as many keywords as I can think of! I have a bunch of (well, nine) tile jpegs, with standard tile filenames. Each jpeg is 220x175 pixels: (top…
AP257
  • 89,519
  • 86
  • 202
  • 261
54
votes
1 answer

What is actual difference between GraphicsMagick and ImageMagick?

What is the actual difference between the GraphicsMagick and the ImageMagick libraries (source to compare list or article needed)?
Y.N
  • 4,989
  • 7
  • 34
  • 61
54
votes
8 answers

step-by-step instructions for installing IMAGEMAGICK on WAMP?

There don't seem to be any concise tutorials/walk throughs for installing ImageMagick on WAMP for use with PHP. I've tried dozens of combinations of their binary releases with different php extension dll files. I can get imagemagick working fine…
Haroldo
  • 36,607
  • 46
  • 127
  • 169
54
votes
5 answers

ImageMagick: Lossless max compression for PNG?

I'd like to achieve a maximum amount of compression when saving to a lossless PNG using ImageMagick. I'm doing batch conversion of many PSDs. I tried a few things, but it looks to me like the resulting PNG image is not as sharp as original image,…
Mladen Adamovic
  • 3,071
  • 2
  • 29
  • 44
54
votes
2 answers

Imagemagick - Resize images to 25px height and aspect ratio

OK, so I have a folder of like 16 images all between the dimensions of 205x150 to 103x148. I want to size them down to the pixel height and width of 25px and stack them horizontally on a transparent background... is that possible? I should probably…
test
  • 17,706
  • 64
  • 171
  • 244
53
votes
5 answers

How to replace white background color with transparent of an image in ImageMagick?

I have an image in .jpg format with white background color. I want to remove the white background color to transparent in Imagemagick. I tried many ways but still the white background can not be removed. Can some one help me to solve this.
NewUser
  • 12,713
  • 39
  • 142
  • 236
51
votes
2 answers

How to convert a .eps file to a high quality 1024x1024 .jpg?

I have a .eps file that I can look at in Photoshop, and it has a very high resolution, sharp edges, etc. at even larger than 1024x1024. With ImageMagick I want to convert this .eps to a 1024x1024 .jpg with very high resolution. However, with the…
Edward Tanguay
  • 189,012
  • 314
  • 712
  • 1,047
51
votes
2 answers

Create blank image in Imagemagick

How to create a blank new image in Imagemagick via command line? Using -background doesn't work: $ convert -size 800x800 -background white x.png convert: no images defined `x.png' @ error/convert.c/ConvertImageCommand/3257.
qubodup
  • 8,687
  • 5
  • 37
  • 45
51
votes
5 answers

Converting a PDF to a series of images with Python

I'm attempting to use Python to convert a multi-page PDF into a series of JPEGs. I can split the PDF up into individual pages easily enough with available tools, but I haven't been able to find anything that can covert PDFs to images. PIL does not…
Jaearess
  • 677
  • 1
  • 7
  • 10