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
50
votes
3 answers

ImageMagick vs GD - which is faster, less resource intensive and produces better images?

I need to choose between either ImageMagick or GD library for the following image manipulation tasks: resizing images into multiple sizes watermarking images As you can see I don't need anything fancy. I'm sure both these tools can achieve them,…
user967451
50
votes
13 answers

Resize animated GIF file without destroying animation

I need to resize an animated GIF file without destroying the animation. How can I do it using PHP?
riad
  • 7,144
  • 22
  • 59
  • 70
49
votes
6 answers

bundling precompiled binary into electron app

Is there a good solution on how to include third party pre compiled binaries like imagemagick into an electron app? there are node.js modules but they are all wrappers or native binding to the system wide installed libraries. I wonder if it's…
Toby
  • 2,720
  • 5
  • 29
  • 46
48
votes
12 answers

Reducing the file size of a very large images, without changing the image dimensions

Consider an application handling uploading of potentially very large PNG files. All uploaded files must be stored to disk for later retrieval. However, the PNG files can be up to 30 MB in size, but disk storage limitations gives a maximum per file…
knorv
  • 49,059
  • 74
  • 210
  • 294
47
votes
4 answers

ImageMagick: convert to keep same name for converted image

I am converting .psd to .png files inside folder with one. How to keep same name of every file in folder with different extension ? For example I enter in folder images and then from terminal I execute $ convert *.psd *.png but it gives names to…
PaolaJ.
  • 10,872
  • 22
  • 73
  • 111
47
votes
1 answer

Extract EXIF data as text using ImageMagick

Is there a simple way to extract EXIF data as text from an image file using ImageMagick. Something like the way to do it for IPTC data: convert input.jpeg data.iptc <= binary data convert input.jpeg data.iptctext <= textual data Sadly this doesn't…
Werzi2001
  • 2,035
  • 1
  • 18
  • 41
47
votes
4 answers

Can ImageMagick return the image size?

I'm using ImageMagick from the command line to resize images: convert -size 320x240 image.jpg However, I don't know how to determine the size of the final image. Since this is a proportional image scale, it's very possible that new image is 100x240…
JacobT
  • 3,021
  • 4
  • 22
  • 12
46
votes
3 answers

Linux batch conversion: Change quality of jpg with convert but keep its name

If I convert my images with convert -quality 80% *.jpg It works, but the software changes the file names to the first one it picks. How can I keep the name or even replace the previous image with that of a lower quality.
Frank Vilea
  • 8,323
  • 20
  • 65
  • 86
46
votes
1 answer

Convert image sequence to lossless movie

I have a sequence of images in TIF format, and I would like to create a movie at a fixed FPS (say 10 images per second) and that is lossless. Is there an easy way to do that? I've been trying with convert from Imagemagick, and ffmpeg, but I just…
astrofrog
  • 32,883
  • 32
  • 90
  • 131
46
votes
2 answers

Imagemagick convert resize then crop

I have over 1000 images on different resolutions, (for example 1234x2122, 4400x5212 , etc) and I want to convert all of them to fixed 100x100 size, so. first I need to resize the images keeping proportions, and get 100xA or Ax100, where A > 100 (it…
Gor
  • 2,808
  • 6
  • 25
  • 46
44
votes
4 answers

How to concatenate icons into a single image with ImageMagick?

I want to use CSS sprites on a web site instead of separate image files, for a large collection of small icons that are all the same size. How can I concatenate (tile) them into one big image using ImageMagick?
Peter Hilton
  • 17,211
  • 6
  • 50
  • 75
44
votes
8 answers

RMagick complains it was configured with a different version of ImageMagick

I am getting following error while running local script/server of my Rails project: This installation of RMagick was configured with ImageMagick 6.6.1 but ImageMagick 6.4.5 is in use. (RuntimeError) Running identify --version shows the…
chaitanya
  • 1,974
  • 3
  • 17
  • 35
44
votes
3 answers

How to convert all files (in different formats) in given folder to different file type

I have a folder with many images from different types (png, jpg, jpeg, bmp, pdf), and I would like to convert them all into png (for instance) using imagemagick. Is there a single command which can perform this? If not, what should I do…
Tal Galili
  • 24,605
  • 44
  • 129
  • 187
43
votes
3 answers

Imagemagick: Convert to fixed height, proportional width

Using Imagemagick, I'd like to convert a batch of PNGs to a fixed height of 1080px and a proportional width. With proportional I mean this: If the original Image is scaled down 16.8% to 1080px, the width also needs to be scaled down by 16.8%. Any…
Christian
  • 1,212
  • 1
  • 15
  • 30
43
votes
1 answer

Imagemagick can not find delegates library for .tiff format on mac os x mountain lion

I could not convert .tiff files to other format. Here is some debugging output: $ convert -list configure Path: /usr/local/Cellar/imagemagick/6.7.7-6/lib/ImageMagick/config/configure.xml Name …
Rn2dy
  • 4,112
  • 12
  • 43
  • 59