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
15 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
63 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: ... ...
0
votes
1answer
145 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
10 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
25 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
33 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
29 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
21 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
108 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
47 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
0answers
172 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
127 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
136 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
26 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?
0
votes
1answer
77 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
405 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. ...
0
votes
1answer
62 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
0answers
616 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 ...
0
votes
0answers
57 views

Toold for vector-to-vector conversions (SVG/PDF to EMF/EPS)

I used the convert of IM to translate svg to eps. But apparently ImageMagick rasterized it. Is there a mode to do vector-to-vector conversion? Inkscape does not reproduce transparent areas and ...
0
votes
0answers
26 views

How to create multiple images of montages using ImageMagick

I can create a montage from a folder of images using ImageMagick. Simple enough. However I have 100+ images that are about 640x400 a piece. I want to have a contact sheet of about 2 images by 3 ...
0
votes
1answer
7 views

How do I make weighed average (using alhpa channel as weight) of pictures?

I have multiple similar pictures I want to make aveage of, but not uniformatically. Each zone in pictures should have separate weight, and the weight is encoded in alhpa channel (fully transparent - ...
1
vote
1answer
44 views

Resize/crop multiple files while preserving certain areas?

I have 176 JPEG images that are 450x800 in size, and was wondering if there was a way to essentially resize them, but while preserving their content in certain areas (currently I'm only hoping for the ...
1
vote
1answer
20 views

Positioning images on page using imagemagic

I use the command convert *.png -flip -page 2647x3745+50+50 doc.pdf to produce a pdf from scanned images. I put the option flip in because convert uses the lower-left corner instead of upper-left ...
0
votes
1answer
102 views

Imagemagick text to file batch

I want to convert text to images, but the text varies. I would like to make this a batch job. This is my first stab at the problem: #!/bin/bash COUNT=$(ls -f *.jpg *.png *.gif | wc -l) for f in $( ...
0
votes
0answers
43 views

Adding bleed margins to CSS sprites with ImageMagick

I have a CSS spritesheet with equal-sized sprites. I want to add a 1-pixel margin to each sprite, and extend each sprite's outermost pixel into that margin -- basically a full bleed effect for each ...
5
votes
1answer
494 views

Unable to install Imagemagick on Ubuntu 12.10

I've got a virtual machine running on Ubuntu 12.10. When I try to run apt-get install imagemagick I get several 404 errors: Err http://archive.ubuntu.com/ubuntu/ quantal-updates/main libcups2 ...
0
votes
2answers
100 views

How can I run mogrify over the 3 million JPG files?

I have 3 million JPG files stored in a Linux CentOS 6 server. I want to change quality to %50 file size over 1 megabyte. I wrote this command but got an "argument list too long" error: $ find -type ...
0
votes
0answers
285 views

ImageMagick 'convert' Doesn't Convert JPG to PNG

I'm trying to convert a JPEG to a PNG using ImageMagick. Should be easy, right? What am I doing wrong? ╭ ~/tmp2 ilesm@mb-ilesm.local ╰ % convert -version ...
2
votes
1answer
495 views

Convert file to 24bit bitmap

I'm using imagemagick convert to convert this image http://i.imgur.com/P1uqj9K.jpg to a bmp. However for some reason the tool I am using doesn't like the bitmap. If I save the image as a png and ...
1
vote
1answer
47 views

How to convert a directory of JPGs to multi PDF files?

I'm searching for a batch command that will convert a directory of JPGs to many PDF files. In order to convert JPGs to JPGs, i use the following command: mkdir tmp; find . -name "*.jpg" -exec convert ...
1
vote
2answers
63 views

What causes import command to fail as running through a service

Our System V service runs a daemon that runs the import command. Running our service by sudo service myservice start seems to start the service but when it comes to take a screenshot, import does not ...
1
vote
0answers
142 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 ...
0
votes
0answers
133 views

ImageMagick installing TrueType Font Support

I am trying to install ImageMagick from source, but I can not get it to install truetype. $ ./configure Option Value ...
0
votes
0answers
239 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 ...
0
votes
1answer
137 views

Transfer transparency from one image to another using imagemagick

I am trying to take the alpha channel from one image and apply it to another. In this particular case I want to "fix" the corners on the pink one. I want to use the alpha channel from the black one. ...
0
votes
0answers
119 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 ...
0
votes
1answer
276 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 ...
1
vote
1answer
433 views

Imagemagick killing colour quality when resizing image

I'm trying to resize a bunch (450+) of images through imagemagick, they all start at 500x500 and I've written a script to resize them to about 5 different sizes. Now I've converted them I notice that ...
1
vote
0answers
34 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
1answer
41 views

Imagick jpeg:size option not working on one server but not the other

Not sure if this should be posted here or on stackoverflow so figured this was the safer bet. I'm using Imagick to resize jpegs. This is part of the code $prehintSize = (int) $requestedWidth > ...
0
votes
0answers
108 views

Automatically resize image on the shorter side regardless of orientation in imagemagick

Im struggling to resize an image regardless of orientation using imagemagick, is the program that terrible that a basic detection method is not even included? Do I have to now go and check the ...
1
vote
1answer
130 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 ...
1
vote
2answers
179 views

Batch-processing images of documents to look like a fax

Let's say I have a photo or scan of a text document, possibly with some low-contrast watermark background. If it is a photo, in addition to the watermark there will be brightness gradients from the ...
1
vote
0answers
122 views

Best settings to convert massive pdf hiking maps to images using ghostscript/imagemagick

I did convert all of the Te Araroa Hiking Maps from PDFs to JPEGs so far. The original maps are 16-64MB PDFs, which take forever to load on my Android Phone. I converted them using Ghostscript and ...
0
votes
1answer
65 views

unable to rasterize svg with mask

This svg loads in fine in a browser (ffox, chrome, http://jsfiddle.net/9tT6T/), but inkscape and imagemagick just convert this as a white rectangle when exported as a png. How do I rasterize this svg ...
2
votes
1answer
131 views

Does imagemagick support image scaling algorithms related to depixelization

I am currently using this plugin for Paint.NET that provides a number of image filtering functionality. http://forums.getpaint.net/index.php?/topic/23601-2d-image-scaling-algorithms/ I was looking at ...
0
votes
1answer
215 views

Use GIMP color curve with ImageMagick

I created a color curve with GIMP. It looks like this: ~/.gimp2.8/curves/selphy (Just the first lines) # GIMP curves tool settings (time 0) (channel value) (curve (curve-type smooth) ...
2
votes
1answer
300 views

Windows command line ImageMagick percent escapes

I'm trying to use ImageMagick from the command line in Windows 7 to convert many images at once. I would like to use the -set option interface, but I'm getting unexpected results. A short example of ...
1
vote
0answers
177 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 ...
2
votes
1answer
76 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 ...