Use this tag for questions related to the changing/combining of files containing pictures or other images. (Dumps of filesystems are often called images, but handling those is not called image-manipulation)

learn more… | top users | synonyms

28
votes
5answers
47k 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 ...
16
votes
4answers
32k 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 ...
15
votes
4answers
8k views

Command line convert webp to jpg?

I'm using ubuntu 12.04. I've installed libwebp2 & libwebp-dev So far, no example found on the net of converting webp to jpg. Some webp files can easily converted by using imagemagick with ...
12
votes
4answers
5k views

Batch delete exif info

How can I recursively remove the EXIF info from several thousand JPG files?
12
votes
3answers
4k 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 ...
11
votes
5answers
4k views

Change file created date from JPEG EXIF metadata

When uploading to an ftp site, the original file create date seems to be lost, and I get the upload date instead. However, the Exif data in the file is correct. Is there a tool to batch change the ...
10
votes
6answers
10k views

shell command to get pixel size of an image

Is there a shell command that returns the pixel size of an image? I'm trying to produce an animated gif starting from different gifs with different sizes using convert (e.g. convert -delay 50 1.gif 2....
9
votes
1answer
4k views

Open source duplicate image finder for Linux?

Is there a free and open source duplicate image finder for Linux based systems? Finding exact duplicates (based on content, not file name) is sufficient for me, but the ability to find similar images ...
8
votes
2answers
2k views

Is there a way to flatten a .pdf image from the command line?

In GIMP, I can import a .pdf, and use the GUI to flatten it (if it was made with many layers) by selecting "Flatten Image" in the "Image" dropdown menu. I can then export the .pdf with a new filename....
7
votes
5answers
11k views

How to rotate all images in a directory with imagemagick?

I want to rotate all the images in a directory that match a pattern. So far I have: for file in `ls /tmp/p/DSC*.JPG`; do convert $file -rotate 90 file+'_rotated'.JPG done but that gives no ...
5
votes
2answers
3k views

How to split an image vertically using the comand line?

So, say I have a large 800x5000 image, how would I split that into 5 separate images with dimensions 800x1000 using the command line?
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 ...
5
votes
1answer
2k views

Crop SVG drawing to canvas size in command line

I have SVG images produced by PlantUML, which has some parts of drawing outside of canvas. It makes it difficult to use such images and I need to crop drawing to canvas size. As I produce UML diagrams ...
5
votes
3answers
193 views

What tools to use to eliminate metadata in graphics files?

What tools can I use to delete all the EXIF, IPTC, XMP, etc metadata from graphics files?
5
votes
1answer
1k views

Redirect terminal output to image file

I need to programmatically run some unix commands and get the output in a image file, the format could be png or jpeg (jpg). The commands are run in an AIX (IBM *nix) machine. I don't have ...
4
votes
3answers
2k views

Cropping a JPG image

This is a question about image file cropping. I recently posted a public notice to an Indian newspaper called the Free Press Journal. This is available online as The Free Press Epaper. Now, one can ...
4
votes
3answers
264 views

How do I find all square images in a directory

The images are stored in JPEG and PNG files. I want to get a list of those of them that are square.
4
votes
1answer
4k views

Convert a folder of images into a multi-page pdf file using command line tools?

I have a folder with 100 jpg images. I want to convert these images into a multi-page pdf file, with all the images (cropped to A4 size). They are already in the correct rotation. Which tools should ...
4
votes
1answer
2k views

Resizing and cropping 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 -...
4
votes
4answers
57 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 ...
4
votes
1answer
648 views

How to rename all files and add image size to file name

I can`t make this work. I have a lot of images and i want to rename his name and append image size to name using exiv2 exiv2 pr * prints all info about file # exiv2 pr 9b523e5a002268fe5067a928 File ...
4
votes
5answers
4k 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. ...
4
votes
1answer
904 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 ...
4
votes
1answer
1k views

How can I generate CMYK images via the command line under Linux?

I have an application I have developed which is generating RGB PNG images with text on them via imageMagic, like so: convert -size 1000x1000 -density 300 xc:white -pointsize 24 \ -fill "rgb(0,0,0)" ...
4
votes
1answer
417 views

Extract graphs from PDFs

I have a situation where I need to extract images from lots of PDF files and display them on a website. My PDFs have "regular" images as well as lots of graphs. I used pdf2xml and it pulls out the ...
3
votes
4answers
3k views

How to resize a PNG file from the command line?

Suppose I have a image named 1.png which is currently 500px : height 1000px : width I want to resize it to: 50px : height 100px : width It must be output in PNG format, not JPG. An example would ...
3
votes
1answer
2k views

Montage together five gifs

I have five gifs all with the same number of frames and the same framerate. Is it possible to montage these together into one gif where each frame is similar to a normal montage of static images and ...
3
votes
3answers
2k views

Is there a command line tool for image manipulation?

I'm searching for a tool for command line image manipulation. I want something similar to pinpoint presentation tool where I edit a file and can directly see the results on another window. I can get ...
3
votes
2answers
40 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 ...
3
votes
1answer
105 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 ...
3
votes
1answer
203 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 ...
3
votes
1answer
749 views

Why is ImageMagick's `compare` command so slow and is there an alternative?

I have a shell script running on an little Atom based Micro-ATX box that is doing some watchdog-like functions for a number of devices on a local network. One of the things it's doing is monitoring ...
3
votes
2answers
737 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 ...
3
votes
2answers
1k views

Measuring the length of a curved line

Is there a software tool that will allow me to measure the length of a curved line? I have a series of lines in an image that I want to measure the length of. I have a tablet so I can trace over the ...
2
votes
1answer
131 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 ...
2
votes
1answer
8k views

open corel draw files on debian

So I have .cdr files on my PC and I want to open them on my Debian 7 box. What software do I need to be able to open it?` I have: 512 MB RAM 3 GHz processor 256 MB graphics with Debian 7
2
votes
1answer
2k 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 ...
2
votes
5answers
1k views

Are there any animation programs for animating static images?

I'd like to make a simple movie with my kids. I've taken some pictures of toys and cropped them to be the characters. I'd like to make a movie where these move against some background (ie the ...
2
votes
1answer
28 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
1answer
366 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
806 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 ...
2
votes
1answer
148 views

How to convert JPG files to one JPG file

I have several JPG files from a PDF file, so concatenating the JPG files need to be "under each other". How can I do this?
2
votes
1answer
184 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.
2
votes
1answer
198 views

ImageMagick vs GraphicMagick: How to move image

So, I have a bunch of files that I use as the basis for my wallpapers. Using ImageMagick, I can convert then using: convert \ -resize '1920x1080>' \ -extent 1920x1080 \ -background '#...
2
votes
1answer
675 views

*ix based Morphing software?

Morphing is "a special effect in motion pictures and animations that changes (or morphs) one image into another through a seamless transition", according to Wikipedia here. My friend recommended some ...
2
votes
1answer
112 views

Given a .gif, return the color components as X11-style hexadecimal specifiers (or equivalents)

I am a fan of potrace, and I recently read the Potrace FAQ. The FAQ includes this beautiful one-liner: cat img.gif | giftopnm | ppmcolormask #641b1b | potrace The command I am looking for would ...
2
votes
1answer
57 views

Manipulating RGB values in PNG from command line

I'm looking for a command line tool/script which allows you to balance the colors in a PNG - similar to the "Adjust Color Balance" effect in Gimp (Colors > Color Balance...). Something like this ...
2
votes
1answer
966 views

How to scale xvfb?

I'm looking to develop a web-application that translates request parameters into a PNG/GIF chart. I'm looking to reuse an open source charting library, but I have concerns about the scalability. A ...
2
votes
0answers
19 views

Using a web browser to generate a gallery/slideshow from local files

I'm trying to see how far I can go with using a web browser for various tasks vs. native apps. One of these tasks is selecting a group of local image files and generate a preview/gallery/slideshow in ...
1
vote
1answer
179 views

splitting an image into multiple pieces

I have an image as below. It is 2579*2388 pixels. Lets assume that it's bottom left corner is at 0,0. From that image I want to create multiple images as follows and save them in the working folder. ...