ImageMagick is an open source image editing software suite for displaying, converting, and editing raster image files. It supports read/write for more than 100 image file formats.

learn more… | top users | synonyms

0
votes
0answers
19 views

getting wrong order of files with ImageMagick and *.png [duplicate]

I am using ImageMagick to concatenate files which I have named 1.png to 50.png. However the files are arranged in the wrong order going 1.png, 11.png, 12.png ... instead of 1.png,2.png ... It must ...
0
votes
0answers
30 views

How do I use imagemagik with URL locations?

The command below can be used to genereate a gif animation from a bunch of files stored locally: convert -delay 10 -loop 0 *.png animation.gif Is there a way to tell convert to wget the images from ...
1
vote
0answers
16 views

How can I remove the embedded preview in an EPS file without destroying all metadata?

I have several EPS files data exported from Adobe Illustrator, which apparently embeds a TIFF preview so that the EPS file is previewable. This is undesired, because I use these files in XeLaTeX, ...
0
votes
0answers
7 views

Mogrify/imagemagick flatten + trim in 1 command nog working when processing JPG and TIFF

We are processing 500 images tiff and jpg using this command mogrify -path "PATH_TO\DONE" -trim -flatten -define jpeg:extent=500kb -format jpg -resize "1200x1200>" *.* It should open all images, ...
0
votes
0answers
42 views

Using mogrify (imagemagick) to batch convert all my files (with params)

we are new to mogrify and I just read all I could find but somehow I am not succeeding to do the following. take a input path and process all files also in subdirectories trim all resize all image, ...
3
votes
2answers
38 views

Collate image list with name

How to create a collation of images in the format: image_name_1 [IMAGE#1] image_name_2 [IMAGE#2] image_name_3 [IMAGE#3] ... Using Imagemagick I can say something like: montage -label '%f' -mode ...
1
vote
1answer
39 views

Find All images file size and width in directory

I'm trying to find all .png .jpg and .gif files in my directory. I'm getting the file sizes properly but unable to get image width (I'm using imagemagick) in log file. Script code #!/bin/bash for d ...
2
votes
1answer
23 views

Silhouette from an image

How can I create silhouette from an image in linux using the terminal? By creating silhouette I mean - how do I turn the RGB components values of an RGBA image to #000000, while preserving the alpha ...
2
votes
0answers
25 views

Can not seem to get the jp2 delegate to work in ImageMagick on Ubuntu 15.10

As the title says, I have tried to install the library on both 14.04 and 15.10. Every time I type in convert -version the delegates do not contain jp2000. I have installed libopenjpeg-dev and ...
3
votes
1answer
45 views

mkfifo pipes, file descriptors and ImageMagick (convert)

I'm in trouble using named pipes (i.e. created with mkfifo) and file descriptors to redirect outputs and grab inputs to/from them within ImageMagick (convert). Basically, with the following bash code ...
3
votes
0answers
21 views

How to resize images to fit all content on minimal canvas?

I'm trying to quickly check for differences between separate iterations of a web site using ImageMagick's compare. But it refuses to compare images of different size, and doesn't seem to have an ...
1
vote
0answers
35 views

How to preserve clearness while converting jpg to pdf file?

I would like convert a jpg file (a photo taken of two pages of a book) to a pdf file, with the goal of making the pdf file look like pages of a regular ebook file in terms of page size and ...
1
vote
1answer
32 views

Multiple images on root window with ImageMagick

I don't run a desktop environment, but instead use a bare window manager (StumpWM). Thus, my usual method for setting a desktop background is to run display -window root <image file> from a WM ...
0
votes
0answers
23 views

How to create a gamma cross-fade of two pictures using ImageMagick?

I want to make a gamma composite image, as is common with making cross-fades between two video tracks. The composite frames of the cross-fade are made by cross-fading the gamma values of one picture ...
4
votes
4answers
53 views

Programatically determine “uniformity” of image

I'm attempting to write a script which thumbnails our many thousands of assets. The assets use Flash for the most part, and I'm capturing them via chromium-browser on the command line. I pretty much ...
1
vote
1answer
35 views

Stop ImageMagick from rotating image on append

I took two photos with my phone, one horizontal and one vertical, and they show up fine in Eye of Gnome. When I try to glue them top-to-bottom with ImageMagick's convert: $ convert img1.jpg img2.jpg ...
1
vote
1answer
27 views

How to use ImageMagick's convert to rescale an image, adding letterboxing to produce a fixed size result?

I have some arbitrarily-sized images for which I want to produce fixed-size 800x600 thumbnails, which keep the original image ratio and add white letterboxing to make up the rest of the space. I'd ...
0
votes
1answer
186 views

How To Install and Configure ImageMagick for PHP and Wordpres on Amazon Linux AMI

I've installed a fresh Wordpress site on my Amazon Linux AMI following the setup instructions listed on the EC2 Tutorials section i.e. "Hosting a WordPress Blog with Amazon Linux". I'm also using the ...
5
votes
2answers
272 views

Create the same PNG with ImageMagick 2 times: Binaries differ

I create two images that should be identical, but their binaries are different: $ convert -size 1x1 xc:white out1/w.png $ sleep 1 $ convert -size 1x1 xc:white out2/w.png $ diff out1/w.png out2/w.png ...
2
votes
1answer
118 views

Cropping images using ImageMagick results in all output files (TIF) of same size?

I am scanning a rare old book (cookbook) for archiving using my Canon LiDE 110. The scans are .TIF files, and I want to batch crop them for uniformity, et cetera. This is how I am doing the batch ...
0
votes
0answers
45 views

remove black bars have watermark by imagemagick

I have a vary large number of images with watermark some of them have black bars and some not. and i want remove the black bar ,,i was use -trim but imagemagick cannot identify the black bars due the ...
1
vote
1answer
47 views

bash script to bulk resize using Imagemagick

I need to convert a very large number of images JPEGs. those images some are 720px × 480px, and some 300x400 and some 2000x1400 and some are 1000x1000 etc.. I only need to resize those images to ...
1
vote
3answers
50 views

script not running as expected when scheduled as a cronjob

I'm trying to write a script that will identify corrupt jpg images using imagemagicks identify command. The script will run the command, grep the output for the word "Corrupt", move it to a corrupt ...
0
votes
1answer
58 views

Imagemagick having trouble escaping shell variables

I have an imagemagick command that is having trouble with the $quote$arcangle and $halfdimension$quote concatenated shell variables I'm passing as strings. Here's the transcript: $> echo convert ...
3
votes
1answer
102 views

overlay an image

I have two photos ( 1.jpg and 2.jpg) I want to make photo 2.jpg as a background and photo 1.jpg red colored overlay and I want the output to be like photo 3.jpg as follow ( I want to put photo number ...
0
votes
1answer
30 views

Imagemagick import screenshot in Debian of a launched app

I'd like to launch Iceweasel and then take a screenshot. When I simply try to wait and take it, it works fine sleep 10;import -window root root/scr/scr.png however when I first launch the browser, ...
1
vote
0answers
88 views

Why does Imagemagick's convert change TIFF metadata?

I've got a TIFF file with a certain set of tags. When I convert this file to fix the offset of ICC metadata (not word-aligned), I get a whole different set of tags. Why does this happen and how can I ...
3
votes
1answer
58 views

How to split images using ImageMagick?

I have an image which contains multiple images in it. I want to split the image into multiple image files, one file per image. How do I do this using ImageMagick? I have attached a sample image file. ...
1
vote
2answers
528 views

The following packages have unmet dependencies

Every time I try to use apt-get install or remove or purge on my Debian, I have this error pop up: The following packages have unmet dependencies: libimage-magick-q16-perl : Depends: ...
0
votes
0answers
65 views

Resizing image with ImageMagick and Ruby on Rails

I have been trying to use Imagemagick to resize images uploaded by a user as a square. Currently, I am using the ! like so - 640x640! This works fine if the image I feed it is a resolution of ...
1
vote
1answer
88 views

is there a difference between convert and convert-im6 and if yes, what?

I checked out changelog.gz, changelog.Debian.gz as well as NEWS.Debian.gz but could not find what the difference is between convert and convert-im6 ? I did see that both are genuine binaries and not ...
1
vote
1answer
258 views

ImageMagick convert grayscale to alpha, colorize, overlay

I'm a total noob with ImageMagick, but I have extensive experience with Photoshop – I know this should be a breeze for an ImageMagick veteran, but I'm pulling hairs here. I have a 24-bit RGB (not ...
2
votes
1answer
150 views

Recursively execute imagemagick composite command in directory tree

I have a large directory tree with many sub-folders and lots of images within each one. I found a script that applies watermark to all images within a directory, in-place, overwriting the original ...
0
votes
0answers
44 views

imagemagick: compositing images with fractional X/Y offsets

Using a one-line imagemagick command, how can the offset of a destination image be defined in relation to the size of the source image? The following command superimposes two images with absolute ...
0
votes
0answers
49 views

error in script that calls convert command

I am pretty new to linux and have encountered an issue I feel confused about. I need to combine a list of images, located in different folder, into one single jpg. #!/bin/sh # parameter $1 is the ...
1
vote
0answers
36 views

How to cut a really large raster image into smaller chunks?

I have a large poster as a pdf-file. I need to create a raster image from it (for instance because there seems to be no pdf viewer which allows me to zoom sufficiently to see the contents). So I ...
2
votes
1answer
314 views

Alpha removal with ImageMagick is bad but only with a white background

I'm getting surprising (to me) variations in antialiasing quality when converting a PDF (with black text on white only) to a PNG and removing transparency with ImageMagick (version 6.7.7.10 from ...
2
votes
2answers
841 views

Set default pdf reader

When I install shutter to take screenshots, imagemagick sets itself as default PDF-reader and I am unable to change it. I would like to have evince as default PDF-reader. I have tried right click ...
0
votes
0answers
87 views

Metadata preservation when modifying images with ImageMagic

I want to resize, convert or resize + convert images in JPEG, PNG and TIFF in each direction: jpg → tiff, tiff → png, etc. And I want to use -flatten as well. What does ImageMagick do with the ...
3
votes
1answer
191 views

Create an ARGB struct for C header from a PNG

I need to update a logo bitmap to an updated logo. The existing code uses a C header which is loaded via XChangeProperty. I have looked into imagemagick and the Gimp in order to convert the updated ...
1
vote
1answer
122 views

Convert horizontal picture to vertical using imagemagick, filling empty space around with black

I have a horizontal image and i want to create a vertical copy of it for a specific resolution, filling the empty space around it with black. Can this be done with imagemagick and how?
2
votes
2answers
696 views

add filename as text in the corner of an image file

I have a bunch of jpeg images. Say 001abcd.jpg, 002abcd.jpg, and so on. I want to capture the filename and add it as a text in the image itself in one corner. So the result would be, for example, the ...
1
vote
1answer
116 views

convert -composite freezes?

I installed ImageMagick with pacman on Arch Linux. Now I try to compose two images like this: convert \( -size 1x1 xc:black \) \( -size 1x1 xc:black \) -composite out.png but it freezes at 100% CPU ...
1
vote
1answer
211 views

Creating multiple pngs with ImageMagick causes slow desktop

I am running Linux Mint 17, Cinnamon 2.4.8 Hello, I am using ImageMagick to create large 500+ png images. This causes Cinnamon to go very slow. I would understand if Cinnamon is slow WHILE I am ...
1
vote
1answer
752 views

How to use convert command with bash to resize all images in a given directory?

I want to resize all PNG files in ~/somefolder/ whose filenames are NOT started with tn_ to 50% of its original size and rename the output file with a tn_ as its prefix and its original name. I know ...
0
votes
1answer
160 views

Imagemagick mogrify with shadow geometry

How can I specify the size of a shadow with imagemagick? This command works: montage foo.jpg bar.jpg foobar.jpg -background lightgray -geometry 1031x1642+57+57 -shadow -monitor -tile 3x1 out.png ...
2
votes
1answer
177 views

Rotate image if width is greater than a value (i.e in pixels)

I was trying to rotate few hundred images which have 7000px height in 1000+ images how to rotate them from bash.
1
vote
1answer
81 views

/scripts/installimagemagick is now deprecated

I am trying to install Redmine With SVN following this article. But when i run /scripts/checkimagemagick this command -bash: /scripts/checkimagemagick: No such file or directory and when i run ...
2
votes
1answer
119 views

How to extract comment from ppm file?

I have ppm file X.ppm with comment : xxd X.ppm|head -10 0000000: 5036 0a23 206d 6967 6874 796d 616e 6465 P6.# mightymande 0000010: 6c20 2d32 2e38 3034 3132 3232 3037 3833 l -2.80412220783 0000020: ...
9
votes
8answers
616 views

Find duplicate PDF files by content

Some journals generate a different PDF for each download. APS for example stores time and the IP address in the PDF. Or there is a paper version with hyper links and one with text references. How ...