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

1
vote
1answer
17 views

Imagemagick: disable OpenCL on Linux

Whenever I use imagemagick commands, I see errors and warnings like the following: $ convert -size 99x99 caption:"t" -border 1x1 t.png convert: clBuildProgram failed. (-11) @ warning/opencl.c/...
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 ...
1
vote
3answers
34 views

open latest file (jpg) in folder

My IP camera saves a video (.mp4 file) and a picture (.jpg file) every minute to my Pi, which is set up as an FTP server. I want to open the latest picture with ImageMagick every 5 minutes. The ...
0
votes
1answer
18 views

verifying imagemagick is installed through browser url

we installed imagemagick in our server using pecl install imagick is there any way we can check it is succesfuly installed or not in server ? can we paste any url in browser and check whether it is ...
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 ...
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 ...
1
vote
1answer
21 views

automatically append images in a table with imagemagick

I know this solution to append images in rows and columns. By the way I would like to arrange the images in a square table automatically regardless of their number and without grouping them with the ...
1
vote
1answer
267 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 ...
7
votes
4answers
7k views

How to convert a photo to a black and white image by ImageMagick?

How can I convert a JPEG photo to black and white (not grayscale) image like output of a FAX scanner, by ImageMagick?
1
vote
2answers
7k views

Imagemagick convert returns “no decode delegate for this image format”

I am trying to use this command for ImageMagick: convert "c:\users\****\My Documents\test.png" -transparent white test2.png However, I keep on getting two errors that look like this: convert....
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 ...
3
votes
2answers
561 views

How to display a picture and print pixel coordinates when I click?

When using ImageMagick or similar command line tools it can be useful to know coordinates of some points in the image. How to display an image (with panning and zooming) and print coordinates of ...
0
votes
1answer
31 views

How can I find invalid images?

I have a directory with sub-directories. In the directories, there are a lot of images, crawled from the web. How do I loop through every file and show those files which are not valid image files? ...
0
votes
1answer
49 views

Converting png to pdf with imagemagick: how to set the resolution?

I have an image foo.png which is 1240 * 1754 pixels. Using imagemagick on OS X, I convert this to a .pdf and specify the resolution to be 150 dots per inch, so its physical format will be exactly an ...
106
votes
1answer
73k views

Combine multiple images using ImageMagick

I would like to combine multiple images into one image using ImageMagick. To explain a little better, I want the result to look similar to this: That is, I have a number of screenshots, and I want ...
0
votes
1answer
30 views

How do I use ImageMagick convert in a reproducible manner (without timestamps)?

I am trying to use ImageMagick in a script to convert and resize a large number of files for version control. I need the files to convert the same time every time so git won't commit files that just ...
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
1answer
75 views

How can I convert an animation in PowerPoint into an animated GIF?

In Microsoft PowerPoint 2013, I have a single slide containing a fairly complex animation. I would like to convert this animation to an animated GIF file. I have tried saving the animation directly ...
0
votes
2answers
195 views

Batch Image auto crop, apply fixed width, and maintain aspect ratio

I'm finding it hard to find a solution to what I'm trying to do. Simply put, the usage of these images is for an online store. The IrfanView batch processing using the autio crop borders basically ...
0
votes
1answer
348 views

Can't Start Apache on on Snow Leopard. “libphp5.so requires version 13.0.0 or later, but libjpeg.8.dylib provides version 9.0.0”

To cut a long story short, I was trying to compile and get ImageMagick working on my Mac running Snow Leopard. One thing led to another and now I am stuck with the following error message when I try ...
0
votes
1answer
39 views

After cropping tiff its size increases almost two times

I have a tiff file 2544x3472 and its size is 402960 bytes. After that I cropped it using ImageMagick (Ubuntu): convert "$path" -crop 2544x1850+0x0 -compress JPEG "${PWD}"/output/$filename and now ...
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
1answer
902 views

ImageMagick for Windows not listing OpenCL as enabled

I'm trying to experiment with GPU-accelerated resize operations using ImageMagick. On my Windows machine, using convert -list configure lists only FEATURES OpenMP and not the OpenCL I expected since ...
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
2answers
63 views

How do I separate a TIFF stack into several PNGs or a single PDF?

I was at the library scanning pages of old newspaper articles and the microfilm scanner generated a TIFF stack. Now I am back home I thought this was going to be easier but nothing sees past frame ...
1
vote
1answer
189 views

ImageMagick percentage escapes in Windows 10

I run the following in Windows 10 command line; convert file.png %t-test.png convert file.png '%t-test.png' And I get the following files; %t-test.png '%t-test.png' How can I have the expected ...
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/...
0
votes
1answer
82 views

“convert.im6: memory allocation failed `a.svg'”, trying to convert a 691 KB SVG file to EPS with 100 GB of RAM

I tried to convert a 691 KB SVG file into EPS with ImageMagick using the command convert a.svg a.eps, but I get a memory allocation failed error message: ubuntu@server:~$ convert a.svg a.eps convert....
6
votes
1answer
5k views

Appending images vertically in ImageMagick

convert -append 1.jpg 2.jpg out.jpg This command appends 1.jpg and 2.jpg horizontally. What is the command to do this vertically?
2
votes
5answers
5k views

Get the number of tiffs in a multi-tiff with command line ImageMagick?

Is there a way to get the number of tiffs in a multi-tiff with a command line utility in ImageMagick? What I want to to is to extract (split) the multi-tiff into single files. However if the tiff ...
0
votes
0answers
14 views

Why doesn't ImageMagick's convert actually convert my pdf on docker python:3.5 image? [duplicate]

If you do this: $ docker run --rm -it python:3.5 # apt-get update && apt-get install -y imagemagick wget # convert --version Version: ImageMagick 6.8.9-9 Q16 x86_64 2015-01-05 http://www....
0
votes
1answer
42 views

Batch convert TIFF to PDF and add text

I got a bunch of TIFF files that I am interested to convert to a single multipage PDF file, which should be easily achieved using ImageMagick. However, I'm also interested in adding text to each ...
3
votes
2answers
65 views

Why is PDF with just one image quite bigger than the image?

I would like to embed a scanned document into a PDF document. The source picture is about 300 kB. If I use the convert command, the PDF has a size of 30 MB, and with GIMP, 3 MB. Here the resulting ...
0
votes
1answer
96 views

Why can't ImageMagick read any fonts on my machine?

I'm trying to run montage. montage `ls ?.png` `ls ??.png` -tile 6x3 -geometry 32x32 tile.jpg But I am getting this error regarding fonts. montage: unable to read font `(null)' @ error/annotate.c/...
1
vote
0answers
215 views

Codeigniter libMagick Severity: Core Warning [closed]

I am using GoDaddy Linux cPanel hosting and install fresh copy of CodeIgniter. I'm getting the following error on each session. Each session means this message vanish after next refresh. But when I ...
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
1answer
93 views

ImageMagick: How to do limit colors and dither

I am trying to create a GIF Animation from several frames of a video. I want the result to be small by limiting the colors, but without banding. So, in my mind, I thought of reading the files, then ...
1
vote
1answer
74 views

Merge two images with transparency in imagemagick

I have two images without transparency (two photos) and I want to combine these images into one image where first image covers second image. How to scale these images to the same size and merge with ...
0
votes
2answers
1k views

How to pass a list of files to ImageMagick's montage?

I have a large number of tiles, with the following naming convention: A-x-y.jpg where 0<=x<=16 & 0<=y<=14 Now I know that we can use the Montage tool in ImageMagick, to merge ...
4
votes
3answers
2k views

Building ImageMagick on OSX Lion and can't link libpng

I am trying to build ImageMagick 6.8.0-5 on OSX Lion with support for libpng. I am just using the standard ./configure make make install procedure. I succeed in compiling when I do not reference ...
0
votes
3answers
232 views

Identify specific PNG format

How can I tell, ideally with an Imagemagick identify command, whether a particular PNG is PNG32, PNG24 or PNG8? The %z or %[depth] gives the sample depth (not the pixel depth), which is always 8 or ...
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 ...
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'...
1
vote
1answer
3k views

How to install Imagick on Mac OS with XAMPP

I'm having some trouble installing Imagick on a Mac. I have XAMPP installed and when I run sudo pecl install imagick, I get this error: checking ImageMagick MagickWand API configuration program... ...
3
votes
1answer
1k views

GraphicsMagick error reading PNG file

When trying to read a large PNG file, GraphicsMagick command gm convert pallaso1.png pallars-sobira.jpg just displays this error c:\progs\GraphicsMagick\gm convert: Read Exception (PALLASO1.PNG). ...
4
votes
4answers
7k views

Bulk convert PNG-24 to PNG-8 files with best quality

Can anybody recommend a good method of bulk converting a large amount of PNG-24 files to PNG-8 with as little loss of quality as possible and maintaining transparency? I've tried ImageMagick but the ...
6
votes
3answers
8k views

How do I change the canvas size of a PNG with ImageMagick (GraphicsMagick)? (How to pad with transparency?)

Alternatively: How do I take a non-square PNG and "fill out" the "rest" of the image with transparency so that the resulting square image has the original image centered in the square? ULTIMATELY, ...
1
vote
1answer
19 views

ImageMagick montage always chaging from 32 bits to 8 bits

I am trying to create a montage from a series of 32 bit PNG images. However the result always gets reduced down to 8 bits with no transparency. Here's an example of one of the source images: http://...
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
20
votes
6answers
16k views

Square thumbnails with ImageMagick (convert)?

How to create square/cropped thumbnail using ImageMagick ? Cropping like below.