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
38
votes
6 answers

How to install Imagick/imagemagick PHP extension on windows 7

How to install image magic in Windows 7. I followed these instruction To install IMagick on Windows XP (php 5.2.x) download and install ImageMagick-6.5.8-7 Q16-windows-dll.exe http://www.imagemagick.org/download/binaries/…
DEVOPS
  • 18,190
  • 34
  • 95
  • 118
37
votes
2 answers

Convert PNG to JPG and set transparent background to white with ImageMagick and PHP

How can I use ImageMagick (with the php extension) to set the transparent background to white when converting an image from PNG to JPEG?
John
  • 383
  • 1
  • 3
  • 5
37
votes
3 answers

Imagemagick: remove alpha component (replace all intermediate alpha pixel with solid pixel)

To solve Android build issue I need to replace all intermediate alpha pixel with solid pixel (leaving transparent background as is). How to that with ImageMagick or other-command line tool to all images in a tree? Image bg_all_block.9.png Image…
Paul Verest
  • 60,022
  • 51
  • 208
  • 332
37
votes
4 answers

ImageMagick convert pdf to jpeg has poor text quality after upgrading ImageMagick version to 6.7.8

After upgrading ImageMagick text quality got degraded when convert pdf to jpeg: Old image New Image Conversion command: convert foo.pdf foo.jpeg Old ImageMagick version: [root@home]# convert -version Version: ImageMagick 6.2.8 05/07/12 Q16…
Kuf
  • 17,318
  • 6
  • 67
  • 91
36
votes
7 answers

Convert: Postscript delegate failed

I am trying to convert a PDF to JPEG: $ convert pdf-test.pdf pdf-test.pdf.jpg However, I am getting this error: convert: Postscript delegate failed `pdf-test.pdf': No such file or directory @ error/pdf.c/ReadPDFImage/664. convert: missing an image…
Charlie Kee
  • 1,161
  • 3
  • 11
  • 26
36
votes
9 answers

All of a sudden started getting "Could Not Run The `Identify` Command. Please Install ImageMagick."

I've had ImageMagick, RMagick, & PaperClip working properly with everything setup including the config Paperclip.options[:command_path] in production.rb file. All of a sudden I've started getting the following error: Could Not Run The `Identify`…
Jacob
  • 6,317
  • 10
  • 40
  • 58
36
votes
5 answers

Lion (10.7) Not supporting Convert(1). Dylib error

When trying to use convert(1), I get the following error: dyld: Library not loaded: /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libclparser.dylib Referenced from: /usr/local/bin/convert Reason: image not found Trace/BPT trap:…
Pier-Olivier Thibault
  • 3,907
  • 2
  • 33
  • 33
36
votes
2 answers

ImageMagick and transparent background for animated gif

I have an animation as a batch of .png files (100 files). The background is transparent in the source .png files. I want to convert them into a single animated gif. I have tried this command: convert -delay 0 -loop 0 -alpha set *.png ani.gif But…
noober
  • 4,819
  • 12
  • 49
  • 85
35
votes
4 answers

What packages are available for node.js to do image cropping?

I'm creating a website using node.js. I have seen many libraries mentioned that piggy back on top of imagemagick etc. There is a list here: https://github.com/ry/node/wiki/modules#graphics What I'm trying to do is take the image that a user…
Travis
  • 7,391
  • 12
  • 43
  • 52
35
votes
6 answers

Error "Invalid Parameter" fom ImageMagick convert on Windows

I am trying to convert a PDF document into a PNG file using ImageMagick command line tools from a ASP.NET website. I create a new shell process and ahve it execute the following command: convert -density 96x96 "[FileNameAndPath].pdf"…
rs.
  • 403
  • 1
  • 5
  • 11
35
votes
6 answers

Detect Alpha Channel with ImageMagick

Scenario I would like to save images with alpha transparency as .png and images without alpha transparency as .jpg (even if their original format is .png or .gif). How can I detect whether or not an image has alpha transparency using ImageMagick?
brad
  • 73,826
  • 21
  • 73
  • 85
34
votes
5 answers

ImageMagick command to convert and save with same name

I am using ImageMagick convert command for making thumbnails & save the converted images in another directory, one by one, in PHP. But, cant figure out how to keep the the image name in the converted image. > convert 1.JPG -resize 120X120…
Avisek Chakraborty
  • 8,229
  • 10
  • 48
  • 76
34
votes
6 answers

Convert PDF to JPEG with PHP and ImageMagick

I'm using a litte script to convert PDF to JPG. That works but the quality is very poor. The script: $im = new imagick( 'document.pdf[ 0]' ); $im->setImageColorspace(255); $im->setResolution(300, 300); $im->setCompressionQuality(95);…
Leon van der Veen
  • 1,652
  • 11
  • 42
  • 60
34
votes
3 answers

Why does Ruby open-uri's open return a StringIO in my unit test, but a FileIO in my controller?

I inherited a Rails 2.2.2 app that stores user-uploaded images on Amazon S3. The attachment_fu-based Photo model offers a rotate method that uses open-uri to retrieve the image from S3 and MiniMagick to perform the rotation. The rotate method…
Sean Santry
  • 343
  • 1
  • 3
  • 4
34
votes
7 answers

Can't install imagemagick with brew on Mac OS X mavericks

I am using Homebrew v0.9.5 on my Mac OS X version 10.9.4 When I run the command: `brew install imagemagick, this error occurred. $ brew install imagemagick ==> Installing dependencies for imagemagick: libpng, freetype ==> Installing imagemagick…
Gogo Tanaka
  • 835
  • 2
  • 9
  • 10