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

1
vote
1answer
322 views

imagemagick globbing multiple extensions

I have a folder containing photos coming from different cameras. I use Imagemagick to convert to resized and renamed photos in another folder. Something like this: convert "*.jpg" \ -resize 640 ...
0
votes
0answers
146 views

Gigapixel Panorama not loading after converted with imagemagick

I made a 3GB tif panorama, but as 3GB is a too big size to open in a computer with a 3Gb RAM, i converted it to JPG convert input.tif output.jpg The result was a 15Mb(?!?) JPG, which i am unable ...
1
vote
1answer
128 views

Define length and scale picture

Is there any program under linux where I can do the following: Suppose I have for example a scan of a drawing on a squared paper and suppose that the squares of the original paper have any distance ...
4
votes
1answer
514 views

how to center vertically tiled watermark

I use imagemagick to add a watermark to my photos. The command line is the following: composite -tile -gravity center watermark.png somefile.jpg somefile.jpg But the watermark isn’t centered ...
3
votes
4answers
3k views

convert single-page landscape pdf into rescaled double-page portrait pdf

I'm having trouble using convert to do the following: I have a bunch of single-page pdf files whose geometry corresponds to a landscape A4 sheet. The actual content is visually split in 2 pages. ...
1
vote
1answer
634 views

Convert a .jpg to a one page .pdf at a certain location

I'm looking to convert a .jpg into a .pdf, where the .jpg is positioned at a certain coordinate say 30 pixels and centered. Right now I'm just using: convert image.jpg image.pdf
7
votes
4answers
700 views

Iterate over n files?

I've got something fairly simple I want to do. I want to use montage on a directory that contains thousands of images, with very few options, namely: me@home$ montage -size 256x256 DSC01*.JPG.svg ...
16
votes
4answers
21k views

How can I convert a PNG to a PDF in high quality so it's not blurry or fuzzy?

There are a lot of questions out there about how to convert a PDF file to a PNG image, but I'm looking to take a nice sharp PNG file and just basically wrap it or embed it in a PDF file without having ...
3
votes
2answers
632 views

Running two animations side-by-side using ImageMagick

I have two animations (.gif files) I want to run side-by-side. Can this be done with ImageMagick? Moreover, I want to start one of the gifs after thirty frames of the other have passed. Can this be ...
4
votes
1answer
3k views

Use imagemagick to convert opaque color to alpha

I have an image with a black background with white elements in the foreground. The image has smoothing, so there are 'in-between' pixels that aren't strictly black or white. I'd like to make the ...
3
votes
0answers
783 views

Generating a slideshow under linux

Under Windows, one is able to generate a nice slideshow (crossfading between images, applying the Ken Burns effect on each image) on Windows using (Windows) Movie Maker. When I create a slideshow ...
5
votes
2answers
3k views

How can I add invisible watermark to images on commandline?

Similar question here but for Tex -document. Imagemagick shows ways of watermarking here but not how to do it as invisible as possible. I currently just obfuscate some functional elements into photos ...
2
votes
0answers
816 views

Using Image Magick Convert to Change Channel Depth?

I want to change an image depth of bitmap for testing purposes. Right now I am trying to get a 2 bit palette image, and a 4444 Hicolor image. I have a true color bitmap. I used the below command ...
21
votes
9answers
31k views

Converting multiple image files from JPEG to PDF format

I want to convert some files from jpeg to pdf. I am using following command. $ convert image1.jpg image1.pdf But I have 100 images. How should I convert all of them to corresponding pdfs? I ...
2
votes
2answers
992 views

Convert a lot of .tif files using imagemagick's mogrify command

I have a lot of tif images in a directory. So I try to convert them into jpg format. I use this command : mogrify -format jpg *.tif But I get an error... an error for each image in fact: mogrify: ...
2
votes
0answers
280 views

'convert' taking a long time to create a PNG thumbnail

I made a png from a pdf using ghostscript. It was converted very fast (not more than 1 sec), and has good quality. $ identify 1.png 1.png PNG 3508x2480 3508x2480+0+0 8-bit PseudoClass 2c 51KB 0.000u ...
4
votes
1answer
1k views

convert pdf to image [jpeg|png]

I need to convert pdf files into image files (like: png (prefer), jpeg). I used convert (from the ImageMagick package) but it takes more than 4 seconds for a 2 page pdf file with only tables ...
4
votes
1answer
563 views

Resize a very tiny xcf image without blurring or dithering it

I have some drawings I made with an Intuos tablet. All of these drawings are 25x35 or so. The color of each pixel was very carefully selected. They're kind of like 'miniatures.' I need to resize ...
16
votes
5answers
18k views

Creating a GIF animation from PNG files

Is there a tool to create a gif animation from a set of png files? I tried the convert command from the ImageMagick suite, but this doesn't always succeed. Also, I have several issues with this: I ...
2
votes
1answer
1k views

Convert pdf to jpg keeping the same name; resize & create thumbs then rename?

I have a lot of pdf files (3308) on which I must apply four steps: 1) I have to convert all to jpg I found this little script on the web with ImageMagick: batch converting pdf to jpg I want to do ...
11
votes
1answer
793 views

How to generate a lot of (blank) images files?

For a test, I need to quickly create 1700 jpg-images (even blank) in a defined size 1000x706. I wonder if we could do this with a shell script or a program (like ImageMagick). I wish they called ...
5
votes
3answers
1k views

terminal transparency, Imagemagick, and X11 root window problem

In Ubuntu Natty and in Fedora 12, I have urxvt (with 256 colours), and use ImageMagick (display -window root [...]) to set the root window to a picture. When I use the transparency (-tr) option on ...
3
votes
1answer
2k views

How can I use imagemagick's identify command in a script to tell if a JPEG file is invalid or corrupt?

I have a somewhat-kludgey script in which I want to copy valid, complete JPEG files to a photo album directory. I thought I could use ImageMagick's identify command to do this. The web documentation ...
15
votes
5answers
14k views

convert images to pdf: How to make PDF Pages same size

I did something like convert -page A4 -compress A4 *.png CH00.pdf But the 1st page is much larger than the subsequent pages. This happens even though the image dimensions are similar. These images ...
2
votes
2answers
1k views

ZSH: Stripping path, filename and extension from a list of files for piping a command

The syntax for the command convert in ImageMagick is convert source_filename.ext1 destination_filename.ext2 I would like to use zsh to feed it with files in a folder path_to_source and output the ...
11
votes
6answers
21k views

How to convert TXT to PDF?

I want to convert .txt files to .pdf. I'm using this: ls | while read ONELINE; do convert -density 400 "$ONELINE" "$(echo "$ONELINE" | sed 's/.txt/.pdf/g')"; done But this produces one "error" -- ...
5
votes
1answer
1k views

imagemagick creating one big image by piling up thousand of images of the same width?

I've got a few tens of thousands of images all of 2000 pixel width, and I would like to pile them up in one big image of summed up height and 2000 pixel width. I guess there must be a way to do that ...
3
votes
1answer
119 views

Colour problem when capturing a png of the top panel of the screen

I want to capture a window as a png from within a bash script, using the window's ID. In this case, the window is the top panel.  Using gnome-screenshot the colours are true, as per this image... ...
2
votes
1answer
508 views

Use convert or ghostscript to grab the odd-numbered pages of a PDF

I have a PDF that consists of several hundred pages of bilingual text. Since I need to use OCR on each language separately, I want to grab the even and odd pages and make two separate PDFs, using ...
4
votes
2answers
5k views

Use convert to grab a specific page from a PDF file?

I know I have done this before, so I'm sure it's possible, I just forget how to do it. There's a way to tell convert to grab a specific page of a PDF, and I'd like to keep the format of that page as ...
3
votes
1answer
654 views

Imagemagick -quality 85 doesn't work

I run mogrify to compress a JPEG image to 85% quality: $ ls -lah Screenshot.jpg -rw-rw-r--. 1 USER GROUP 440K May 24 12:10 Screenshot.jpg $ mogrify -compress JPEG Screenshot.jpg -quality 85 $ ls ...
4
votes
1answer
2k views

Resizing and croping images to an aspect ratio of 6x4 with width of 1024 pixels

I have a mixed set of images, each one has a slightly different resolution with a slightly different aspect ratio from other images. I have tried using commands like convert -resize and convert ...
9
votes
4answers
15k views

pdf to jpg without quality loss; gscan2pdf

When I convert a pdf file to bunch of jpg files using convert -quality 100 file.pdf page_%04d.jpg I have appreciable quality loss. However if I do the following, there is no (noticeable) quality ...
3
votes
2answers
617 views

Oneliner for slicing an image?

I'm looking for a oneliner command that would slice an image into given proportions. Say input would be filename and slice dimensions. Are there any standard command-line tools for this? I tried ...
11
votes
3answers
2k views

remove extra tilespace from a montage (ImageMagick) composite image?

I have a bunch of photos. They're all the same height, and I'm trying to put them together into a composite image using ImageMagick's montage program via Bash. The problem is that by default, the tile ...