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
0answers
11 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 ...
0
votes
0answers
22 views

Layer 2 images in Imagemagick without affecting colors due to transparency and gradient

I've been working to add some text from a file to an image using Imagemagick. The text inserts into the correct location, but the text color is getting modified from gold to a slightly muddled gray ...
0
votes
1answer
26 views

Create empty truecolor PNG with ImageMagick

How can I create an empty (transparent) PNG containing 24 bit color channels with ImageMagick? The obvious one convert -size 1920x1080 xc:transparent blank.png will create an 1bit b/w ...
0
votes
1answer
58 views

Convert jpeg quality to 80% using automator

I want to make a automator script that goes trough a folder with subfolders and convert all .JPEG (or .JPG) to the same JPEG, but with a quality of 80%. There is no option in Automator it self like ...
1
vote
1answer
58 views

Batch appending groups of images using imagemagick

I want to use ImageMagick’s convert script to append two images horizontally. This is easily done with convert +append input1.jpg input2.jpg output.jpg. I have a directory of jpeg files however. ...
0
votes
0answers
68 views

Calibrating a flatbed scanner with an IT8 target?

I was trying to calibrate a flatbed scanner with an IT8 target. The problem is that most things turn noticeably greenish (by that I really mean a huge difference in the a* value of Lab*). More ...
3
votes
2answers
78 views

Combine multiple JPEGs into one

I have folder of JPEG files named 0_0, 0_1, 1_0, 1_1, etc. First number is column and second one is row. I want to combine them into one JPEG file. How would I go about doing this? I have looked into ...
0
votes
0answers
75 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 ...
1
vote
2answers
14 views

creating numbered image series in imagemagick

How can I create a numbered image series? I have to give number(writing on them) to thousands of images. Is there an easy way to do this: convert input.png -font arial -fill black -pointsize 10 ...
0
votes
0answers
14 views

ImageMagick input with both page and geometry using bracket notation

Example of what I'm attempting: convert :/path/to/file.gif[2][200x200] png:-, where [2] is the frame and [200x200] is the geometry. Understandably, the above does not work -- I presume ImageMagick ...
-1
votes
2answers
53 views

Problems starting Suricata on Mac OS X

I am trying to start Suricata 2.0.7 on Mac OS X but am having issues. Any idea what’s wrong and how to fix it? Here are the errors I am seeing: $ sudo suricata -c /etc/suricata/suricata.yaml -i en2 ...
0
votes
2answers
49 views

ImageMagick's mogrify tool darkens PNGs (when only trying to resize)

I'm trying to use the simple command to resize images and overwrite the originals: mogrify -resize 80% * My source images are semi-transparent PNGs that happen to be grayscale. The resize operation ...
2
votes
2answers
197 views

How to convert PDF from two slides per page into one slide per page?

I have a presentation in pdf file with two slides per page. I want a presentation in pdf file with one slide per page. I tried using ImageMagick: convert -crop 1x2@ orig.pdf t2.pdf It ...
1
vote
1answer
99 views

Any differences between identify --verbose and exiftool?

Wanted to know if people know of any major differences between identify --verbose and exiftool. A picture here :- ─[$] identify -verbose me_at_minidebconf_thumbnail.jpeg ...
1
vote
1answer
257 views

Converting from color to true black and white in ImageMagick? [duplicate]

I have seen how to convert a picture from color to grayscale in this Super User question and answer thread. However, grayscale is not black and white. Simply put, if a field has color, I want to ...
0
votes
2answers
40 views

JPGs created with Imagemagick won't display on TV

I am trying to convert a free ebook from PNG to JPG, so I can read it on my Sony Bravia KDL-40R470. This is how I converted the PNG file: convert -density 117 -quality 80 progit.pdf progit.jpg ...
1
vote
1answer
49 views

How to identify black and white images in folder of images

I would like to identify the black and white images in a folder containing 300,000 images which are a variety of colours. An alternative method would be to identify the colour images and treat the ...
1
vote
1answer
58 views

Can ImageMagick number output files with two digits?

I use the following command to extract pages from PDF files into independent JPG files before inserting them into videos: convert.exe -density 96 -resize 640x480 input.pdf +adjoin -alpha remove ...
0
votes
1answer
46 views

-bash: rsvg: command not found

I installed ImageMagick brew install imagemagick --with-librsvg And installation went fine, however when I try to run imagemagick in console I see: -bash: imagemagick: command not found How can ...
0
votes
0answers
54 views

Create clean PDF files?

I have multiple PDF files that could contain malware, so I want to create clean PDF files using utilities available on Linux. My idea is to convert the PDF files to images, then convert the images ...
0
votes
0answers
127 views

How to install Imagick on a Centos 6.5 server with DirectAdmin 1.45?

Could someone help us with installing ImageMagick on a Centos 6.5 server? We use DirectAdmin as our control panel with PHP 5.4. We've searched on Google, but most posts with instructions are outdated. ...
2
votes
1answer
159 views

When trying to start Apache - Cant load “Magick.dll” for module Image::Magick?

I have ActiveState Perl 5.10 installed on Windows 2008 machine. I installed ImageMagick-6.8.7-9 Q16 (32-bit) installed. Instead of using ppm to install PerlMagick I built it myself using dmake and gcc ...
1
vote
1answer
185 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 ...
0
votes
1answer
123 views

Installing xorg-x11-devel package in SLES 11 SP2

I am using Imagemagick(6.4.3.6-7.18.x86_64) in SLES11 SP2 Using it like bellow.. import -window $wid $jpg and getting this error import: DelegateLibrarySupportNotBuiltIn `' (X11) @ ...
0
votes
0answers
130 views

issue with install ImageMagick on centos6.5/php5.4 — Unable to load dynamic liberary

I want to install imagick on centos6.5/php5.4 I did all step of this tutorial: https://www.vultr.com/docs/install-imagemagick-on-centos-6 But finaly aftet suscess install I get error with this ...
0
votes
0answers
33 views

Import Image from X11 Screen dosent work in linux

A long story in short, trying to automate an ISO setup/installation process In server(SLES11 SP2) running the installation scripts and virtualbox also installed in the same server. using rdesktop to ...
2
votes
1answer
72 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
73 views

How to change a program path/alias?

I'm not sure how it works on Linux, but you can type in program names such as ls, man, etc., in any directory and the programs are executed. I uninstalled an old version of ImageMagick and built the ...
1
vote
2answers
37 views

Generate thumbnail with Imagemagick

I need to generate thumbnail for all images in a folder like this ( example ) Original image: What I want: I have tried this command mogrify *.jpg -gravity center -thumbnail 350x200 *.jpg ...
1
vote
2answers
289 views

Convert PNG to Multi-page PDF

I've seen a lot of posts about how to convert a multi-page PDF to PNG but I'm wondering how I can go in the opposite direction if I have the size of each page I want made.
1
vote
1answer
15 views

ImageMagick `display` on MS Windows

Is there a way to use ImageMagick's display command-line tool on MS Windows? As far as I know, it requires an X Window System, which MS Windows does not have. Yet, the MS Windows binary come with ...
1
vote
1answer
150 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. ...
2
votes
1answer
494 views

ImageMagick: wrong size when converting PDF to JPG

I want to apply some improvements (change brightness, contrast, etc) to a pdf, to make it more readable, so I chose ImageMagick and pdftk. I used the following command to split the pdf into several ...
1
vote
2answers
54 views

Get image details ImageMagick

How to I get details of images from all folders and sub folders with ImageMagick in this format. file-name file-location file-format size width height PS - I have read this page ...
1
vote
0answers
64 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 ...
0
votes
3answers
257 views

Command options in bash script mixed up for file names

I developed this simple bash script: #!/bin/bash for img in `find ./to_upload -iname "*.jpg" -type f` do mogrify ‑resize 1024 ‑sample 70 ${img} done When I run it, the script return: ... ...
9
votes
2answers
4k views

Can't convert PDF into image, because of 'no images defined' error

I've the following PDF file: http://www.fmwconcepts.com/misc_tests/pdf_tests/test.pdf But when I'm trying to convert it via: $ convert test.pdf test.png I've the following error: convert: no ...
0
votes
1answer
20 views

Iterate over files, ignoring filenames with a hyphen

Background Converting images from RGB to grayscale. A number of files exist in different directories. For example: outline/trigon.png outline/oval-bw.png outline/crescent-bw.png ...
0
votes
1answer
225 views

Can't use the * with ImageMagick : I get “Invalid argument”

Using the example provided there : Combine multiple images using ImageMagick I type this in command line in windows 7 : convert -append a_*.jpg out.jpg This is the error message I get : ...
0
votes
1answer
185 views

How do I draw FontAwesome icons onto an image with ImageMagick convert command?

I have been writing text onto images with ImageMagick using the following method: convert input.jpg \ -fill 'rgba(255, 255, 255, 1.0)' \ -font arial.ttf \ -pointsize 140 \ -gravity Center \ ...
0
votes
0answers
64 views

Imagemagick - Blank Gif created when trying to combine PNGs

I've been working with imagemagick (Ubuntu 12.04/ImageMagick 6.6.9-7) and I've been using it to create animated gifs from a range of files using the following command inside a bash script. convert ...
0
votes
0answers
37 views

Imagemagick: Advanced JPG to PNG convertion

How could I do something like this with Imagemagick?: imagemagick -inuput:0*.jpg select-by-color:ffffff -threshold:15 -fill:fffff -mode:greyscale -mode:index:17 -output:Original_filename.png Using ...
0
votes
0answers
808 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 ...
1
vote
1answer
412 views

Imagemagick's convert output is small when page format is specified

I have these 2 JPEG's and I join them into a single pdf with the following command: convert -compress JPEG -quality 90 -page A4 1.jpg 2.jpg doc.pdf However the resulting document's size is only ...
0
votes
1answer
424 views

imagemagick convert tiff degrades quality, how to prevent it?

I am using imagemagick convert to extract multiple tif images from a single tif file. But when I use the following command convert image.tif single%d.tif I get very low quality (sort of blurred) ...
1
vote
1answer
265 views

Use 'find' command to search for PNG files, pipe output to imagemagick for batch conversion

I've got a directory with thousands of image files, mostly JPG but some PNG. The files have no extension, they're just numbered. I need to convert all of them to JPG. Using find I can get a list of ...
2
votes
1answer
240 views

ImageMagick - Creating animated GIF from tiled image, having trouble with “virtual canvas” metadata

I have an image that contains smaller images similar to this: ------ | 1 | ------ | 2 | ------ | 3 | ------ | 4 | ------ Each sub-image is 100x200, and the whole image is 100x800 I would like ...
0
votes
2answers
89 views

How can I batch with ImageMagick command?

I'm doing convert dead0000.bmp -alpha on -fill none -draw 'color 0,0 replace' dead0000.png but I have a few thousand files. Is there any way to just do the whole directory at once?
1
vote
1answer
323 views

Why does ImageMagick's montage limit the JPG output to 65500 instead of 65535?

JPEG/JFIF supports a maximum image size of 65535×65535 pixels. Is there any reason why ImageMagick's montage limit the JPG output to 65500 instead of 65535?
2
votes
3answers
1k views

How to batch convert multi-page PDF into individual jpg files

I found these posts on converting a PDF to JPG using ImageMagick. However, I have a 12 page PDF I want to convert into 12 separate high quality jpg files. Looking for the least tedious way possible. ...