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

0
votes
0answers
12 views

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

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 ...
0
votes
1answer
23 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
53 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
30 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)' @ ...
0
votes
0answers
12 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
21 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
24 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
1answer
41 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 ...
1
vote
0answers
84 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 ...
1
vote
0answers
27 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
11 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: ...
1
vote
1answer
12 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: ...
0
votes
0answers
10 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
1
vote
1answer
76 views

Imagemagick changes page size when converting from pdf to jpg

I want to convert a pdf to jpg. The page size is not standard. (pdf here: imslp) When I convert the pdf to jpg with convert -density 300 sheet.pdf sheet.jpg, I get this: Converted image. (The ...
0
votes
0answers
49 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
21 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 ...
1
vote
1answer
41 views

How to crop north and center with morgify in ImageMagick

Is there a way to crop an image centered horizontally, but not centered vertically? For example, here is how I would want an image cropped: However, using the command mogrify -crop 250x250 -gravity ...
1
vote
1answer
31 views

How to change gif duration with Image Magick?

I have a gif of say 200 frames, and I want to shorten it to only the first 100. How do I do that?
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 ...
2
votes
0answers
48 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: $ ...
0
votes
0answers
27 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
1answer
25 views

How to parse output to see if a string matches?

Challenge: I need to parse the output from imagemagick's "identify" command to detect the presence of a particular string. If it doesn't exist, then I echo the filename to the screen. Background: I ...
0
votes
1answer
47 views

Munpack and utf-8 filenames in attachements

i have another UTF-8 problem. I use munpack -C $extrdir $file to automatically extract JPG files from emails that i received with fetchmail. Afterwards I use bash and imagemagick to process images ...
0
votes
0answers
11 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 ...
1
vote
1answer
171 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
0answers
48 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 ...
2
votes
1answer
86 views

Convert binary data to valid image format, using Imagemagick (or other tool) [duplicate]

I have raw binary data in a file. I know that it is "8-BPP monochrome" and I know width and height of image. How could I convert this data to any readable image format?
1
vote
1answer
29 views

Imagemagick's mogrify can't render text

I'm trying a simple mogrify test.png -annotate +100+100 '26082015' on a simple image, and no text is rendered. I also tried: mogrify test.png -font courier -fill black -pointsize 20 -annotate ...
2
votes
1answer
39 views

Imagemagick convert -append producing incorrect output

I am trying to stitch together a sequence of images. The first few seem to work fine, but after a couple, bad images appear instead of the specified images. Here are the first several images: ...
1
vote
1answer
72 views

Operating on wildcard input files and saving output as <input> + suffix

I want to batch process my a list of wildcard input files and then output then to the input filename with a suffix appended. I'm hoping to understand this general case. In particular, I'm running ...
1
vote
1answer
62 views

Batch convert 4 PDF pages to one PDF page

I have a PDF with 100 pages. How can I make a new PDF that displays 4 pages on one? I know that I can do it with Chrome by printing the PDF to new PDF and change this in the options. But I want to ...
-1
votes
1answer
105 views

$PATH not saving after exporting Imagemagick paths

I am trying to install Imagemagick using the official instructions. I have executed the three export commands: export MAGICK_HOME="$HOME/ImageMagick-6.9.2" export PATH="$MAGICK_HOME/bin:$PATH" ...
1
vote
0answers
70 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 ...
1
vote
1answer
298 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
47 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 ...
1
vote
1answer
222 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
142 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
121 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
186 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
158 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 ...
1
vote
0answers
624 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
33 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
16 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
97 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 ...
2
votes
2answers
133 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
1k 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
257 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 ...
2
votes
1answer
2k 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
72 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
94 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 ...