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/

311 questions
13
votes
1 answer

Use imagemagick to convert opaque color to alpha

I have an image with a black background with white elements in the foreground. The image has smoothing, so there are 'in-between' pixels that aren't strictly black or white. I'd like to make the background transparent. I found several links on how…
sparky
  • 131
12
votes
2 answers

How can I add invisible watermark to images on commandline?

Similar question here but for Tex -document. Imagemagick shows ways of watermarking here but not how to do it as invisible as possible. I currently just obfuscate some functional elements into photos so extremely hard to remove, without distorting…
user2362
11
votes
1 answer

How to convert, resize and center image with ImageMagick

I'm unable to center a converted *.png file with ImageMagick's gravity option. Gravity seems to have no effect in the following command. On the contrary it erases everything and the output becomes white page. convert puma1.png -compress jpeg \ …
mabalenk
  • 531
7
votes
1 answer

unable to open X server

I am trying to display the dimensions of an image and then resize them with a program my system says is there called Package ImageMagick-6.5.4.7-7.el6_5.i686 already installed and latest version. But getting error: -bash-4.1# display…
cea
  • 1,543
5
votes
2 answers

Imagemagick resize

I am familiar with convert -resize % for decreasing a size by percentage but what is the command to increase an image from say 700 pixels to 800 pixels? Horizontal width should resize, too. I need to preserve the overall quality and look of the…
4
votes
1 answer

how to center vertically tiled watermark

I use imagemagick to add a watermark to my photos. The command line is the following: composite -tile -gravity center watermark.png somefile.jpg somefile.jpg But the watermark isn’t centered vertically. It looks like this: I’d like it to start…
wryrych
  • 183
3
votes
1 answer

How ImageMagic decides colour maps?

I've updated to IM 6.9.9-3 recently and found some very inconsistent behaviour. Here are two seemingly similar images: image1.png image2.png Let's have a look at what IM thinks of their colourspaces: [grochmal@phoenix]$ identify * image1.png PNG…
grochmal
  • 8,657
3
votes
2 answers

differences between -resize and -size, and between -repage and -page for convert?

For Imagick's convert, what are the differences between -resize and -size, and between -repage and -page? If I want to convert some png files to a pdf file, and change the size of images (as number of pixels, or as some standard page size such…
Tim
  • 101,790
3
votes
2 answers

Imagemagick -quality 85 doesn't work

I run mogrify to compress a JPEG image to 85% quality: $ ls -lah Screenshot.jpg -rw-rw-r--. 1 USER GROUP 440K May 24 12:10 Screenshot.jpg $ mogrify -compress JPEG Screenshot.jpg -quality 85 $ ls -lah Screenshot.jpg -rw-rw-r--. 1 USER GROUP 441K…
LanceBaynes
  • 40,135
  • 97
  • 255
  • 351
2
votes
1 answer

imagemagic: Convert -gravity center not working

I have a bunch of images and trying to convert them to pdf using the below command: $ convert *.jpg -resize 1240x1753 \ -extent 1240x1753 -gravity center -background white \ -units PixelsPerInch -density…
Santhosh
  • 409
2
votes
2 answers

rotate single image to multiples angles with imagemagick

I have one round image. I need to rotate this image in 1 degree steps. i.e. 60 rotated images of single image. How may I do this with imagemagick ?
2
votes
1 answer

Border with ImageMagick

In Crop and resize image to fit a5 pdf I asked how to fit an image in a landscape A5. Now I'd like to add a border or frame for the image and a tagline in the bottom (between the bottom line and the image). Is this possible using ImageMagikc?
Juanjo Conti
  • 2,723
2
votes
1 answer

increasing imagemagick memory/disk limits

I find that I cannot increase imagemagick's memory/map/disk limits above their current values: $ identify -list resource Resource limits: Width: 16KP Height: 16KP Area: 128MP Memory: 256MiB Map: 512MiB Disk: 1GiB File: 768 Thread: 4 …
user001
  • 3,698
2
votes
1 answer

convert -composite freezes?

I installed ImageMagick with pacman on Arch Linux. Now I try to compose two images like this: convert \( -size 1x1 xc:black \) \( -size 1x1 xc:black \) -composite out.png but it freezes at 100% CPU load. I need to kill it with ^C. As you see, it…
rr-
  • 983
2
votes
1 answer

convert pdf to png with resize and adding black border

I try to convert the first page of a book to a png, scale the png to a certain size and add a black border. This is what I tried: convert tmp.pdf\[0\] -background white -alpha remove -border 8 -bordercolor black cover.png This is the document, I…
1
2 3