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

0
votes
1answer
20 views

jpegtran - losslessly crop left portion of image

I have a 1400x1400 image in which I want to trim 4 pixels to the left, 1 at the bottom and, to keep square proportions, 3 from the top. The problem is, whenever I perform a crop with jpegtran, pixels ...
0
votes
1answer
23 views

Making concentric circles in GIMP

I have a single layer image that is 480px square, which I am created with GIMP (it is blank). How can I make: Three concentric circles (the center being at 240,240 px) with radii 240, 180, and 60. ...
0
votes
0answers
16 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 ...
2
votes
0answers
13 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 ...
4
votes
4answers
46 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
23 views

pdftoppm (v 3.0) very slow to convert thumbnail in newer version

On one of our local servers, I use pdftoppm (v 0.18.4) to capture the first page of a pdf file as a 1200px wide jpg. It's very quick, and works very well. I'm doing it like so: pdftoppm -f 1 -l 1 ...
1
vote
1answer
24 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
24 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 ...
1
vote
2answers
56 views

Create one pdf out of multiple (selected) images

To convert multiple images to pdf this script will do that for all images inside a folder: #!/bin/bash # for f in *.png; do convert ./"$f" ./"${f%.png}.pdf" done But each image is converted into ...
2
votes
1answer
105 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
13 views

What Linux tool can I use to measure font sizes in a PSD file?

I've tried gimp (clicking the texts with the Text tool), but it doesn't work (adds a new text instead of focusing on the existing one). The font information is already there (I've asked a friend with ...
3
votes
1answer
85 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 ...
4
votes
3answers
245 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.
0
votes
0answers
57 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
241 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 ...
0
votes
0answers
38 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 ...
1
vote
0answers
34 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 ...
0
votes
0answers
65 views

How to obtain the same effect as Camscanner default setting using terminal?

As of now, I can't find any linux command line tool to do it (Demonstration of Camscanner). I could do it using GIMP batch edit mode, But I am looking for existing command line tools/utilities. For ...
1
vote
1answer
268 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 ...
0
votes
0answers
83 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 ...
2
votes
1answer
53 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 ...
3
votes
1answer
181 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 ...
2
votes
2answers
604 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 ...
0
votes
1answer
165 views

Resizing/Processing only images in folder larger than specified height? [duplicate]

I have a folder with JPG images, some of which have a height dimension larger than 1900 pixels. I need a command that will ignore the images with a height dimension lower than 1900 pixels, while ...
1
vote
1answer
158 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. ...
1
vote
1answer
695 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
148 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 ...
0
votes
1answer
325 views

Bash script to create montages of images with G'Mic

I need a bash script which will run through a folder of 100s of jpegs and create montages of every 30 images and output the montages with distinct file names. The G'Mic command to create a montage ...
2
votes
1answer
167 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
179 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 ...
4
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?
3
votes
1answer
650 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 ...
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 ...
0
votes
1answer
425 views

How can I make a montage which seamlessly tiles the same one image file?

I would like to preview how one single image (768x1024 px .tiff) would look as a pattern by generating an output file where it is tiled in such and such a way (4x4, 5x5, etc.). The image should be ...
1
vote
1answer
388 views

Merging pairs of TIFF files in a directory

For example, say a given directory has 1000 TIFF files named sample1.TIFF, sample2.TIFF, etc., all the way to sample1000.TIFF. I want to merge each pair of files: sample1.TIFF and sample2.TIFF are ...
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 ...
1
vote
0answers
151 views

How can I add a still image inside a video with avconv or opensource software

I would like to add a still image inside a h264 video following an in and out point in time. I would like to use only opensource/free Linux/Debian packages. I tried a lot of things with avconv like ...
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 ...
1
vote
2answers
5k views

Convert image with imagemagick command line convert tool

I have an image Image.png. How do I use the ImageMagick command convert to make this file into a Image.jpg file with the following requirements: File size is 200~500 kb. Resolution in not less than ...
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 ...
2
votes
1answer
7k 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
1
vote
0answers
42 views

Linux display server or program that can route video and/or images between its clients?

The JACK Audio Connection Kit (http://jackaudio.org/) is a really useful tool for working with audio on linux systems. It allows for both audio and MIDI data to be communicated between its clients, ...
7
votes
5answers
10k views

How to rotate all images in a directory with imagemagic?

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 ...
11
votes
4answers
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 ...
1
vote
1answer
190 views

Quick and dirty way to edit scans

I've got a lot of documents that I want to scan that require only modest editing. Mainly trimming the edges, splitting in two (when I scan two pages in one scan), and possibly adjust the perspective ...
10
votes
6answers
9k 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 ...
14
votes
4answers
7k 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 ...
0
votes
1answer
214 views

Removing all tags from images [duplicate]

Possible Duplicate: Batch delete exif info How can I remove all tags from images under a directory (using Linux)? I can find all files with something like find pictures -type f -iname ...
2
votes
1answer
145 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?
4
votes
1answer
616 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 ...