ImageMagick is a set of command line utilities to modify, transform, and convert images. The utilities are available for all major OSes.

learn more… | top users | synonyms

3
votes
1answer
164 views

Converting images of different dimensions into a gif with maximum dimensions

I have a set of images for an animation, but not all of the dimensions are the same. Some may be 100x100, others might be 99x105, a few with 110x100, and so on. If I did a simple convert *.png ...
3
votes
1answer
547 views

transparent gradients with graphicsmagick

I'm trying to create a gradient that goes from transparent to some color. With imageMagick you can do that with (taken from the documentation): convert -size 100x100 gradient:none-firebrick ...
2
votes
1answer
124 views

Unpaper only processing first page?

I'm trying to use unpaper to process some PDFs that I have. But unpaper only seems to process the first page everytime. I'm using Mac OS X Yosemite. Here's my process: I scan in the document in PD ...
1
vote
1answer
328 views

Updating libpng on Ubuntu

I had a need to run the Ubuntu libpng utility convert, and when I did I got an error message that my version of libpng was out of date and had to be updated. So, I went the usual route of apt-get ...
1
vote
1answer
649 views

Using `imagemagick convert`, how do I resize an image and convert it to a centred A4 sized pdf while retaining image quality?

When I convert a png-image to pdf, I have been using convert in.png -page A4 out.pdf to get a pdf where the image quality is retained and the image is aligned to the bottom left corner by default. To ...
1
vote
1answer
482 views

exiftool width and height of resized images not match the new sizes

$ convert original.jpg -resize 50% test.jpg $ exiftool test.jpg ... Exif Image Width : 1200 Exif Image Height : 1600 Image Width : 600 Image Height ...
1
vote
1answer
284 views

Can't get ImageMagick -fft to execute in Command Prompt

I downloaded ImageMagick (Windows 7 64-bit) and FFTW, and I can do simple commands but I can't use the -fft option. Commands are from the ImageMagickv6 examples. None of the examples with -fft work. ...
1
vote
1answer
507 views

imagemagick draw text word wrapping

I have this script, which writes text to images. echo \\n"List? {y/n}" read cont if [ "$cont" = "y" ] || [ "$cont" = "Y" ] then rm -rf sponsors.txt ls *.jpg *.png *.gif -1 > sponsors2.txt ...
1
vote
1answer
1k views

Macports Imagemagick Install for PHP

I'm trying to install Imagick for PHP via Macports and the PECL extension, based on the guide here: sudo port install ImageMagick sudo pecl install imagick I entered the opt/local path and setup ...
1
vote
1answer
268 views

Convert SVG that has an Arabic text to png (or any raster)

I have an SVG file which has Arabic texts. When I tried to convert it to a raster format Arabic text became unicode signs. Latin letters are allright. I tried imageMagick and rsvg-convert. Both are ...
3
votes
0answers
292 views

How to obtain a version of ImageMagick compiled for OpenCL (Linux)

For reasons I do not understand, ImageMagick requires a special compilation to make use of OpenCL drivers on the host machine. Does anyone know of a place where I can obtain a Linux version compiled ...
2
votes
0answers
95 views

Using imagemagick to crop and combine A4 sized PDFs

I have to make a photocopy of my driving license. I've scanned the front and back sides, and generated a PDF for each side (and a PNG as well just in case). So far, so good. Imagemagick reports: $ ...
2
votes
0answers
1k views

Merge two pdf files side by side in command line

I have got two pdf files with same number of pages and want compare each page with the corresponding page in the other file. For this I would like to merge say page 1 of File1.pdf with page 1 of File2....
2
votes
0answers
345 views

Imagemagick batch converting memory overload

I must to convert about billion of images from jp2 to jpg... I create such .bat for /d %%d in (*) do ( for %%f in ("%%~d\*.jp2") do ( convert -limit memory 0 -limit map 0 "%%~ff" -quality 25 "%...
1
vote
0answers
10 views

Straightening a curved image in MATLAB

I registered a video of the experiment that I am carrying on - It is an image of a rotating cylinder. However, when I save the image, the cylinder appears a bit skewed as you can see in the image file ...
1
vote
0answers
54 views

Imagemagic and php exec: convert: no images defined

The command works just fine from the shell /opt/ImageMagick/bin/convert /private/var/folders/nl/9cky1krj5_j7zwm34tfkndd40000gn/T/pdfPyflQF /private/var/folders/nl/9cky1krj5_j7zwm34tfkndd40000gn/T/...
1
vote
0answers
60 views

Generating a thumbnail reel from a video with image magik and/or ffmpeg

I read a post detailing how you can call ffmpeg from image magik. I want to learn how to: Take a series of screenshots from a video, store them in memory (dont' write all images to disk) at the end ...
1
vote
0answers
100 views

Does Image Magick offer a streaming API?

I have a Node.js server (irrelevant) that does image manipulation with ImageMagick. Basically, I can POST an image to the server and it will respond with the transformed image. Right now I’m just ...
1
vote
0answers
102 views

Disk space used by ImageMagick/Ghostscript

I have a 200 MB PDF file input.pdf consisting of scanned images, whose resolution I want to reduce. Under Windows 7 the following command convert -density 200x200 -quality 60 -compress jpeg input....
1
vote
0answers
88 views

how to manage images in emacs org mode

I am considering switching from zim wiki to org mode for managing collection of web page pieces. Typically it includes images and texts I copied from a web browser. The question: 1 how to insert ...
1
vote
0answers
2k views

Creating and splitting large multipage TIFF images

I need to both create and split multipage TIFF images, ranging from 2 to almost 100 pages (A4, 300 dpi, 2500×3500 px). The job is performed periodically by a script on an x64 Linux server. Currently I'...
1
vote
0answers
2k views

Using avconv to convert an animated gif to mp4 with sound

I want to convert an animated gif and a midi (music) file into a mp4 video. Is it possible? I saw a lot of topics on documentation, foruns and stackexchange sites, but I didn't find. It works with 1 ...
1
vote
0answers
413 views

How to apply clut (Color Lookup Table) using ImageMagick command line

IamgeMagick dcouments its -clut option as "Replace the channel values in the first image using each corresponding channel in the second image as a color lookup table...This operator is especially ...
1
vote
0answers
462 views

ImageMagick delegate library error

I have recently installed ImageMagick and I am trying to use it to convert postscript files to .gif images. I ran the post installation test: '/usr/local/bin/convert logo: logo.gif' This ...
1
vote
0answers
79 views

ImageMagick: is there a way to get the same PNG from the same image on multiple platforms?

I have a script for converting game assets to multiple resolutions, via imagick, and when I run the same imagick commands on Mac and Windows (with the same version of imagick - ImageMagick 6.8.7-2), ...
1
vote
0answers
446 views

Using imagemagick or gifsicle to output GIF with specific filesize?

I have been following this online guide to convert a small video clip into image frames, then combine them together into a single animated GIF. The problem I'm having is that each GIF tends to be ...
1
vote
0answers
74 views

Gif output not as smooth when selecting a sequence of files individually

I have a sequence of images 001.png 002.png 003.png that I would like to combine into an animation. I used the following command convert -dispose 3 -loop 0 *.png out.gif And it looks ok. However, ...
1
vote
0answers
368 views

can I remove imagemagick by deleting directories?

I posted this to StackOverflow, but probably belongs here. I'm on OSX Lion, trying to get back to basics so I can run RMagick in Rails 3.0, using rvm. When I tried to add the RMagick gem to Rails ...
1
vote
0answers
690 views

Installing an OTF Font under Ubuntu Server

I have an OTF Font I want to use with ImageMagick. Last time I had to install it on other machines, I copied it into /usr/share/fonts and ran fc-cache, then, convert -list font | grep "myfont" found ...
1
vote
0answers
1k views

From Illustrator to png with the help of ImageMagick

Currently I save my files in Illustrator as .pdf files so that I can use ImageMagick to manipulate the resulting images programatically (cropping, adding borders, resizing, etc) and convert them to ....
0
votes
0answers
3 views

Zoom out with preserve aspect ratio

Need to zoom out image adding white border, but preserving aspect ratio od image. How to do that in ImageMagick ? I've tried adding border with parameters -bordercolor White -border 100x100 image.jpg ...
0
votes
0answers
10 views

grab file every x min, and save with continuous number

I have a ip camera which saves pics to my rasperry pi's ftp, than the pi uses imagemagick to overlay some text and saves it as webcam.jpg this happens every x minutes via cron now i want to grab the ...
0
votes
0answers
23 views

Bash - Removing all but a single number in output of command

I'm working on a script to process all images in which the standard deviation is less than a certain threshold, e.g., if overall SD is less than 50 in x image, do y to x. The command I am using to ...
0
votes
0answers
14 views

How to find the pixelwise difference between every sequential pair in a directory of images in ImageMagick

I have a directory of 1,000 time lapse images, ordered by their timestamp. I would like to take the pixelwise difference between every two sequential images, and store the resulting 999 images in a ...
0
votes
0answers
41 views

Error in converting color pdf into grayscale pdf in Linux - 'File has errors…'

I have been trying to convert a color pdf to a grayscale pdf prior to printing to avoid the color printing costs. I am using Debian and ImageMagick commands: convert -monochrome swp574.pdf output2....
0
votes
0answers
20 views

Batch appending (set side by side horizontally) entire folder of images in pairs using imagemagick

I'm trying to figure out the correct command(s) to batch append (and output with a sequentially numbered (incremented) filename) an entire folder of PNG files, in pairs. i.e. I have a folder of ...
0
votes
0answers
55 views

Image Magick: Error on convert

I'm trying to use Image Magick to convert a pdf to a png (as I have done many times before), except that today, I type in the same old command as always: convert filename.pdf filename.png I get the ...
0
votes
0answers
24 views

how to merge two similar image's differences into one image in terminal?

I don't know if this has been done before, can we merge two pictures in terminal. when I say merge I mean merge their differences and keep the common parts and NOT merge them into a bigger size ...
0
votes
0answers
15 views

Align baselines of fonts using ImageMagick

Using ImageMagick I would like to create an image with a headline and tagline having a different font and size. It is important that the baselines are aligned. Below is an example of what I mean: I'...
0
votes
0answers
14 views

Helping with pdf border

Thanks for help in Advance, I have pdf and I want to add border in that pdf with white color, i.e left,right,top ,bottom can someone hep me regarding this I am comfortable with ghostscript
0
votes
0answers
106 views

Composite images with ImageMagick convert

I am trying to automatically compose (overlay) two PNG image files. I have a background image and a mostly transparent overlay of the same dimensions. The latter contains text on transparent ...
0
votes
0answers
41 views

ImageMagick resize/extend PDF results in illegible text

I am trying to extend the PDF’s left margin, and was trying to use convert. However, I can’t get it to work properly without losing the text quality; see screenshot below. The text comes out ...
0
votes
0answers
11 views

Per-image settings in motage

I'm trying to create a composite image with imagemagick's montage, where I can specify a per-image -mattecolor. For example: $ montage -mattecolor red \ -label aaa A.jpg \ -label bbb B.jpg I'd ...
0
votes
0answers
34 views

How can I combine images into one image centered vertically in ImageMagick?

I've got images and I would like to merge them into one vertically as show pic. Here is an example of the desired effect: What I get after using a command like this: montage red.png blue.png -...
0
votes
0answers
13 views

How to create new transparent image with text that will have size of text?

For now I am using: convert -size 500x200 xc:transparent -font "myfont.ttf" -pointsize 300 \ -gravity center -draw "text 0,0 'abcdefgh'" png:- > out.png The problem is that I don't now how much ...
0
votes
0answers
316 views

Hue/saturation adjustment by ImageMagick

When I scan a old book that is turned yellow, I remove the yellow by using Photoshop like this. open Adjustment -> Hue/Saturation select Yellows and set Lightness to 100 select Reds and set ...
0
votes
0answers
289 views

ImageMagick video filter for FFmpeg

I'd like to apply some non-trival video operations on a per-frame base. So far, I've been using shell scripts + ImageMagick + FFmpeg, decomposing the video into individual frames on disk, processing ...
0
votes
0answers
178 views

batch split note scans with automatic recognition of parts in page

I regularly use paper to make notes and concepts for most things, work and others. To be quick when having an idea I note them one after another, just to make sure I find things later, I use paper ...
0
votes
0answers
144 views

PhotoViewer.dll for Windows XP

I know it comes with Windows 7, but is there an equivalent standalone module for XP's "Picture and Fax Viewer"?
0
votes
0answers
596 views

Comparing two images: get the XY location of any differences found

I'm trying to compare two images using the ImageMagick Compare module; everything seems okay, but I want to know the exact XY locations of the 'differences' found. How can I get this? I already ...