Questions tagged [image-manipulation]

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)

Image-manipulation, also called image-editing and photo-manipulation (although not restricted to photographic image files), is the changing of image files (TIFF, PNG, GIF, JPEG) using some tool. Changes can be interactive (e.g. with GIMP, or with non-interactive commandline programs (such as ImageMagick, or GIMP in batch mode).

image-manipulation is restricted to graphical images in a file, although a dump of a filesystem or partition is often called an image, handling such files is not considered image-manipulation

139 questions
110
votes
10 answers

convert webp to jpg error: "no decode delegate for this image format" and "missing an image filename"

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 command convert file.webp file.jpg but lots of webp files…
apasajja
  • 1,917
  • 5
  • 17
  • 19
106
votes
10 answers

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.gif -loop 0 animated.gif). The problem is that…
blue
  • 2,812
  • 4
  • 17
  • 14
82
votes
7 answers

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 it look blurry or fuzzy. I realize with…
cwd
  • 44,479
  • 71
  • 146
  • 167
66
votes
6 answers

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 loss: Start gscan2pdf, choose file-> import (and…
student
  • 17,875
  • 31
  • 103
  • 169
53
votes
6 answers

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 created date from the Exif date?
Finn Ove
  • 531
  • 1
  • 4
  • 3
45
votes
4 answers

How to split an image vertically using the command line?

Say I have a large 800x5000 image; how would I split that into 5 separate images with dimensions 800x1000 using the command line?
shley
  • 1,081
  • 1
  • 8
  • 7
35
votes
5 answers

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. I would like to automate this. Is there some way to…
generic_user
  • 597
  • 2
  • 5
  • 10
29
votes
1 answer

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 would certainly be great, too.
hpy
  • 4,517
  • 8
  • 53
  • 73
24
votes
7 answers

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 output?
Michael Durrant
  • 41,213
  • 69
  • 165
  • 232
23
votes
3 answers

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 size (one image occupies one tile) is equal to…
user1995
21
votes
4 answers

Batch delete exif info

How can I recursively remove the EXIF info from several thousand JPG files?
LanceBaynes
  • 39,295
  • 97
  • 250
  • 349
16
votes
8 answers

How can I split each PDF page into two pages, using the command line?

I have a few ebooks scanned from originals. They're formatted so that a single PDF page contains two actual pages: one on the left, and one on the right. I want to programmatically split each PDF page into two, so the left 50% of PDF page 1 becomes…
Philip Kirkbride
  • 9,816
  • 25
  • 95
  • 167
16
votes
2 answers

How to cut image by top 30% in Unix?

I want to cut 30% from the top of the image. I know the thread How to cut a really large raster image into smaller chunks? but there is no successful approach because I cannot find a distance measure of convert from zero to the end, only by…
Léo Léopold Hertz 준영
  • 6,788
  • 29
  • 91
  • 193
13
votes
4 answers

How to blur webcam background in Microsoft Teams

I am currently using Teams for a master and I would like to blur my backgrounds, do you know any way to do it?
Alessio_110
  • 365
  • 3
  • 7
  • 16
11
votes
3 answers

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 download a notice that was posted in the paper as…
Faheem Mitha
  • 34,649
  • 32
  • 119
  • 183
1
2 3
9 10