ImageMagick is an open source software suite for displaying, converting, and editing raster image files.

learn more… | top users | synonyms

23
votes
1answer
24k views

How to crop borders/white spaces from image?

I have a lot of images which have white borders around them. I would like to crop those borders all at once, preferably from command line. I believe that it can be done with ImageMagick, but I couldn'...
17
votes
4answers
62k views

14.04 doesnt have package imagemagick

Usually I had installed Image Magick on my Ubuntu systems with a command like this sudo apt-get install imagemagick or like this: sudo apt-get install php5-imagick Right now I am running the ...
17
votes
2answers
15k views

Resize images to specific height value in ImageMagick?

I've looked around for this, and can't find an easily implemented solution. Currently I'm working on an application that deals with panoramas. As they come out of the batch stitch process, the ...
16
votes
1answer
16k views

how can I resize an animated GIF file using ImageMagick?

I want to resize such an animated GIF file do.gif If I do convert do.gif -resize 24x24\! do-24.gif I get it resized in do-24.gif but not animated How to resize it right way to get the same ...
14
votes
4answers
6k views

ImageMagick convert can't convert to webp

On Ubuntu 12.04 ImageMagick doesn't seem to support webp. convert flyer.png flyer.webp creates an png file with webp extension. On https://developers.google.com/speed/webp/docs/using is stated that ...
14
votes
6answers
13k views

convert images to pdf

I have saved multiple images from google books. I wanted to convert them to a single pdf file, where in I need some inputs. The below two images(one png and one jpeg) are two continuous pages. first ...
13
votes
2answers
960 views

ImageMagick suddenly installed

I was taking a look at my installed programs, when I saw a program called ImageMagick, I took a look at it in the Ubuntu Software Center, and it's a program to manipulate images. That's OK, but I ...
11
votes
14answers
18k views

Is there a better way to redact a PDF?

I had to print a couple of PDFs recently to send to someone, but I wanted to redact (black out) a couple small bits of text. A quick google search didn't turn up any tools for this specific purpose, ...
11
votes
3answers
8k views

RMagick install problem

I can't install RMagick because of the following dependency problem after trying sudo apt-get install libmagick9-dev (required according to this) on Ubuntu 10.0.4: Note, selecting libmagickwand-dev ...
10
votes
1answer
10k views

How can I install the latest upstream version of ImageMagick without compiling?

I had some issues with ImageMagick and I was told Ubuntu's default ImageMagick package is an ancient version and I should upgrade to resolve my issues. How can I do that? I have the latest Ubuntu ...
10
votes
1answer
2k views

Use ImageMagick to compare Images

I want to compare a source png file to a compressed file. I am using imagemagick and this command: convert image1 image2 -compose Difference -composite \ -colorspace gray -format '%[fx:mean*...
10
votes
2answers
326 views

ImageMagick convert and low RAM

Please consider the following command for the imagemagick package: sudo convert -resize 460x200 /path/to/test1.jpg /path/to/test2.jpg Now test1.jpg is a fairly large image (12.5MB), but not unheard ...
9
votes
5answers
3k views

How can I convert a folder of .pngs to .jpgs while setting the background color?

I have a folder of png files that have transparent backgrounds. I would like to convert them from the command line and maintain the images' transparent backgrounds. I'd appreciate any help. Since ...
9
votes
5answers
44k views

How to add support for the JPEG image format

After installing Imagemagick, I've tested it with jpg image, like this: identify 1.jpg But, I got this result: identify: no decode delegate for this image format `1.jpg' @ error/constitute.c/...
7
votes
2answers
4k views

Resize large images with mogrify (ImageMagick) but leave small images unaffected

Images can be resized using mogrify from the ImageMagick suite: `mogrify -resize 256x256 *.jpg` But this will resize images so that the largest dimension is 256px, including images that are smaller ...
6
votes
2answers
735 views

How to remove ImageMagick without breaking its dependencies?

I want to remove the pre-installed ImageMagick from my Ubuntu 16.04 LTS. Uninstalling it also removes CUPS and other dependent packages which I want to keep on my system. Is there a way to remove ...
6
votes
1answer
2k views

how to install imagemagick for php7 on ubuntu 16.04?

well, just after upgrading my Ubuntu and therefore moving to php7, I seem not to be able to install imagick extension for php using the same old command sudo apt-get install php5-imagick I get this ...
5
votes
2answers
2k views

How can I batch convert images to b/w while preserving the folder structure

I want to batch process images but I have a very specific task that I want to do I do not want to change image type I want to make them black and white I want it to create/preserve images and sub ...
5
votes
2answers
7k views

How do I combine Multiple TIF files into a Single TIF file?

I have a series of TIF files and would like to convert them into a Single TIF file How do I do that?
5
votes
3answers
1k views

Convert emf to PNG image using command line

Is there any command line tool available to convert emf to png images? I tried the convert utility from ImageMagick, but it says decoder for emf not found
5
votes
1answer
818 views

Nautilus Image Converter: strip EXIF metadata

I just found out that images can have more than 20KB of EXIF data. Not really an issue with 2MB files, but if you have small thumbnails this really adds up. I use mogrify often to resize, and I can ...
4
votes
1answer
2k views

How to detect image dimensions and run commands on them?

I have a directory full of images, some of which are portrait-sized instead of landscape-sized, and I want to open the portrait-sized ones with an image editor. I can run the imagemagick command ...
4
votes
2answers
4k views

Is there a GUI to convert/extract images to/from pdf?

I mean something like a graphical interface / front end for Imagemagick or a simpler application that would allow converting/extracting images through the interface (not in the Terminal).
4
votes
1answer
2k views

Update ImageMagick Ubuntu

I would like to update my version of ImageMagick. I originally installed ImageMagick with... sudo apt-get imagemagick Current Version: myapp$ convert -version Version: ImageMagick 6.7.7-10 2014-...
3
votes
2answers
342 views

Unable to restore Envince as default pdf viewer

I don't know why, but somehow "ImageMagick" gained the status of being my default PDF viewing application (I didn't set it manually, maybe it came with the installation of iscan or plex). Now, when I ...
3
votes
1answer
501 views

Is there a way to fill an image with its background color to square size?

Let me describe my problem: I have a site where I post sponsors company logos. Once I'm sent the logo (or I've googled) they are usually in rectangle size - width and height are not equal. On my site,...
3
votes
2answers
1k views

Convert transparent image sequence to gif

I want to convert an image sequence into a gif animation, and i'm using this: convert -delay 100 -loop 0 image*.jpg animation.gif The problem is that for transparent images i can see other images ...
3
votes
1answer
47 views

Ubuntu 16.04 Imagemagick convert jpg webp

I was wondering about the following; I use the following command to find .jpg files in (sub)directorys and convert (mogrify) them to .webp files. find . -name '*.jpg' -execdir mogrify -format webp {...
3
votes
1answer
581 views

ImageMagick PNG delegate install problems

Ubuntu 14.04: I've downloaded the latest imagemagick source and installed, using option below to configure: root@usve59445:~/im/ImageMagick-6.9.3-7# ./configure --enable-shared --with-png=yes ...
3
votes
3answers
776 views

Why do PDF documents open with ImageMagick?

Query shows evince is my default handler. But, double clicking a pdf file opens ImageMagick. A pdf file's Properties shows ImageMagick as the default handler. Why is this happening ? After ...
3
votes
1answer
667 views

Why does convert depend on the obsolete libg2c.so.0? How to get it to work again?

When I try to run convert file.bmp file.jpg I get the following error message: convert: error while loading shared libraries: libg2c.so.0: cannot open shared object file: No such file or directory ...
2
votes
3answers
8k views

How to crop a multi-page (image/scanned) pdf file (which won't crop with pdfcrop)?

Usually, I'm pretty happy using pdfcrop, even though the cropped output usually consumes significantly more disk space. Note that comparable code does exist, which addresses and resolves this issue. ...
2
votes
3answers
14k views

Having problems installing ImageMagick on Ubuntu 14.04

Trying to install imagemagick since 1.5 hrs but with no luck. sudo apt-get install imagemagick php5-imagick But nothing is happening. I tried to cross check with if (!extension_loaded('imagick')) ...
2
votes
4answers
6k views

How can you animate a gif that goes back-and-forth instead of repeating?

I'm animating a gif with Imagemagick, I'm doing animate *.JPG, and that repeats the animation. But I would like it to go do "pic1, pic2, pic3, pic2, pic1" and repeat, so that it goes back and forth. ...
2
votes
2answers
2k views

Merging multiple images into one document and add any caption/label to them

I have multiple jpg and png images. I would like to combine them within one document (ODT/PDF/RTF). It can be easily done by means of following command: convert *.png allTogether.pdf However, there ...
2
votes
1answer
145 views

Why are ImageMagick and Shotwell both pre-installed?

Their jobs are pretty much the same right? I want to uninstall useless programs. But I fear I may lose important things. I have GIMP and Inkscape installed though.
2
votes
3answers
5k views

How to check which version of library is used and how to change?

I have Ubuntu 12.10 installed, with ImageMagick and libjpeg6 and libjpeg8 libraries installed. I am now wondering if there is a way to determine, which version is used, and to change it.
2
votes
1answer
67 views

I would like to batch re-size images in a terminal

I've got like 500 images to resize, I'm not going to do that in gimp...a terminal solution would suit me best. On ubuntu 14.04. I've read this question on stackoverflow (first posted the question ...
2
votes
1answer
567 views

Resize and arrange pictures automatically on a canvas

I want to make a template for printing 9 cards of 63 x 88 mm on a DIN A4 paper I want to load the images so that they re-size themselves and I can print them directly. How can I do that?
2
votes
1answer
243 views

Make a grid of images, then rotate and crop it

So I have a few thousand thumbnails that I want to stitch together in a slightly tilted grid. I figure that's not going to be the most obvious thing in the world to understand so here's an artists ...
2
votes
1answer
1k views

ImageMagick “convert” command cannot use fonts!

convert -size 300x50 xc:none -font Arial -pointsize 20 -gravity center -draw "fill white text 1,1 \"$1\" text 0,0 \"$1\" fill black text -1,-1 \"$1\"" $WATERMARK_FILE Above command results following ...
2
votes
1answer
209 views

Feeding avconv one image after another

I have recently taken a bunch of images to create a time-lapse video and using avconv and this was surprisingly easy (after looking up the right command). But now I want to send each image through ...
2
votes
1answer
903 views

Loop terminal command for combining PNG to GIF animation

I am trying to combine some PNG images to make a GIF animation. To do this I have installed ImageMagic and am trying to execute the command: convert -delay 10 -loop 0 inputfiles*.png animaion.gif ...
2
votes
1answer
2k views

Thunderbird suddenly opens PDF attachments with ImageMagick

I am running Ubuntu 12.04 and use Thunderbird as my email client. People send me PDF-files all the time, and clicking on them used to open them in acroread. Since a few days, if I click on an ...
2
votes
1answer
265 views

Can't install any new packages with apt-get

From some time I've been getting error messages while installing some packages, for example: requires libmagickwand4 (= 8:6.6.9.7-5ubuntu3) ale 8:6.6.9.7-5ubuntu3.2 is about to be installed ...
2
votes
2answers
73 views

Scale down image such that it fills a square of 100x100

I want to create thumbnails for all images of a folder. I also want the images to fit in a square of 100x100 pixels. So after scaling the images down, while the smaller side needs to be 100 pixels, ...
1
vote
2answers
9k views

convert .doc files to .pdf file using imagemagick

I want to convert .DOC files into .PDF format using php image library imagemagick . When I used convert filename.doc filename.pdf command in terminal to convert file to .PDF format I got the error ...
1
vote
1answer
878 views

tool to scan similar images

What tools might be available in Ubuntu to scan many image files and detect similar ones despite different sizes, formats, etc? Support for batch mode/cli would be especially good. For example, so I ...
1
vote
2answers
62 views

How to crop white spaces in png images?

I have couple png images,I want to submit them in my paper.Example: Below the image there is a plenty of white space.How to extract just the image content and get rid of white space?I am on Ubuntu 14....
1
vote
1answer
920 views

Which package should I choose for the convert command?

Typing convert on my system (14.04) produces: The program 'convert' can be found in the following packages: * imagemagick * graphicsmagick-imagemagick-compat Why are there 2 packages providing ...