Questions tagged [imagemagick]

ImageMagick is an open source image editing software suite for displaying, converting, and editing raster image files. It supports read/write for more than 100 image file formats.

ImageMagick® is a software suite to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 100) including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF. Use ImageMagick to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.

The functionality of ImageMagick is typically utilized from the command line or you can use the features from programs written in your favorite language. Choose from these interfaces: G2F (Ada), MagickCore (C), MagickWand (C), ChMagick (Ch), ImageMagickObject (COM+), Magick++ (C++), JMagick (Java), L-Magick (Lisp), NMagick (Neko/haXe), MagickNet (.NET), PascalMagick (Pascal), PerlMagick (Perl), MagickWand for PHP (PHP), IMagick (PHP), PythonMagick (Python), RMagick (Ruby), or TclMagick (Tcl/TK). With a language interface, use ImageMagick to modify or create images dynamically and automagically.

ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that you may freely use, copy, modify, and distribute in both open and proprietary applications. It is distributed under the Apache 2.0 license, approved by the OSI and recommended for use by the OSSCC.

The ImageMagick development process ensures a stable API and ABI. Before each ImageMagick release, we perform a comprehensive security assessment that includes memory and thread error detection to prevent security vulnerabilities.

Courtesy: http://www.imagemagick.org/

299 questions
121
votes
9 answers

Creating a GIF animation from PNG files

Is there a tool to create a gif animation from a set of png files? I tried the convert command from the ImageMagick suite, but this doesn't always succeed. Also, I have several issues with this: I can't tell what the progress is. No matter what I…
Yotam
  • 2,684
  • 6
  • 29
  • 32
110
votes
10 answers

convert webp to jpg error: "no decode delegate for this image format" and "missing an image filename"

I'm using ubuntu 12.04. I've installed libwebp2 & libwebp-dev So far, no example found on the net of converting webp to jpg. Some webp files can easily converted by using imagemagick with command convert file.webp file.jpg but lots of webp files…
apasajja
  • 1,917
  • 5
  • 17
  • 19
82
votes
7 answers

How can I convert a PNG to a PDF in high quality so it's not blurry or fuzzy?

There are a lot of questions out there about how to convert a PDF file to a PNG image, but I'm looking to take a nice sharp PNG file and just basically wrap it or embed it in a PDF file without having it look blurry or fuzzy. I realize with…
cwd
  • 44,479
  • 71
  • 146
  • 167
73
votes
12 answers

How to convert TXT to PDF?

I want to convert .txt files to .pdf. I'm using this: ls | while read ONELINE; do convert -density 400 "$ONELINE" "$(echo "$ONELINE" | sed 's/.txt/.pdf/g')"; done But this produces one "error" -- if there's a very long line in the text file, it…
LanceBaynes
  • 39,295
  • 97
  • 250
  • 349
67
votes
13 answers

Converting multiple image files from JPEG to PDF format

I want to convert some files from jpeg to pdf. I am using following command. $ convert image1.jpg image1.pdf But I have 100 images. How should I convert all of them to corresponding pdfs? I tried $ convert image*.jpg image*.pdf It doesn't…
Pratik Deoghare
  • 1,217
  • 1
  • 11
  • 16
66
votes
6 answers

pdf to jpg without quality loss; gscan2pdf

When I convert a pdf file to bunch of jpg files using convert -quality 100 file.pdf page_%04d.jpg I have appreciable quality loss. However if I do the following, there is no (noticeable) quality loss: Start gscan2pdf, choose file-> import (and…
student
  • 17,875
  • 31
  • 103
  • 169
62
votes
9 answers

convert images to pdf: How to make PDF Pages same size

I did something like convert -page A4 -compress A4 *.png CH00.pdf But the 1st page is much larger than the subsequent pages. This happens even though the image dimensions are similar. These images are scanned & cropped thus may have slight…
Jiew Meng
  • 2,393
  • 7
  • 24
  • 28
54
votes
4 answers

How to rotate a set of pictures from the command line?

I have a large set of JPEG pictures all with the same resolution. It would take too long to open each one inside the graphical interface of imagemagic or gimp. How do I achieve each picture being rotated and saved as the same filename?
sharkant
  • 3,560
  • 10
  • 30
  • 46
45
votes
4 answers

How to split an image vertically using the command line?

Say I have a large 800x5000 image; how would I split that into 5 separate images with dimensions 800x1000 using the command line?
shley
  • 1,081
  • 1
  • 8
  • 7
28
votes
3 answers

Use convert to grab a specific page from a PDF file?

I know I have done this before, so I'm sure it's possible, I just forget how to do it. There's a way to tell convert to grab a specific page of a PDF, and I'd like to keep the format of that page as PDF.
ixtmixilix
  • 13,040
  • 27
  • 82
  • 118
25
votes
7 answers

How to convert a color pdf to black-white?

I'd like to transform a pdf with some coloured text and images in another pdf with only black&white, in order to reduce its dimensions. Moreover, I would like to keep the text as text, without transforming the pages elements in pictures. I tried the…
BowPark
  • 4,811
  • 12
  • 47
  • 74
24
votes
7 answers

How to rotate all images in a directory with imagemagick?

I want to rotate all the images in a directory that match a pattern. So far I have: for file in `ls /tmp/p/DSC*.JPG`; do convert $file -rotate 90 file+'_rotated'.JPG done but that gives no output?
Michael Durrant
  • 41,213
  • 69
  • 165
  • 232
24
votes
3 answers

Set default pdf reader

When I install shutter to take screenshots, imagemagick sets itself as default PDF-reader and I am unable to change it. I would like to have evince as default PDF-reader. I have tried right click on a PDF document in file explorer-> Properties ->…
Gypaets
  • 407
  • 1
  • 4
  • 11
23
votes
2 answers

How to create ico file with more than one image

I can use ImageMagick to convert png to ico but (I think, not sure) it will create one image per ico file for the size I specify. convert favicon.png -resize 32 favicon.ico An ico file can contain 2 or 3 images for 16x16 32x32 and 64x64 pixels. Is…
jcubic
  • 9,612
  • 16
  • 54
  • 75
23
votes
3 answers

remove extra tilespace from a montage (ImageMagick) composite image?

I have a bunch of photos. They're all the same height, and I'm trying to put them together into a composite image using ImageMagick's montage program via Bash. The problem is that by default, the tile size (one image occupies one tile) is equal to…
user1995
1
2 3
19 20