Dies ist eine alte Version des Dokuments!
jhead is available at www.slackbuilds.org. The manual for jhead is here.
jhead image.jpg php -r 'print_r(exif_read_data("image.jpg"));'
jhead -da <to_time>-<from_time> *.jpg
Example:
jhead -da 2011:09:04/21:17:04-2009:09:04/05:55:00 *.jpg
php -r 'print_r(getimagesize("image.jpg"));' rdjpgcom -verbose image.jpg | grep 'JPEG image'
rdjpgcom image.jpg
wrjpgcom [-replace] -comment 'comment text' image.jpg - Add/replace comment directly wrjpgcom [-replace] -cfile comment.txt image.jpg - Add/replace comment with text from comment.txt jhead -ce image.jpg - Insert comment with editor (eg. vim) jhead -ci comment.txt image.jpg - Replace comment with text from comment.txt jhead -cl 'comment text' image.jpg - Insert Comment directly
Bild verlustfrei um 90° im Uhzeigersinn drehen (-rotate 90) wobei Kommentare, exif-header & thumbnails erhalten bleiben. Die Resolution-Info wird automatisch angepaßt: zB 1600 x 1200 → 1200 x 1600:
jpegtran -rotate 90 -copy all in.jpg > out.jpg
Alle Bilder im Verz auf 1600px als größte Dimension scalieren, wobei das Seitenverhältnis erhalten bleibt, Origiale werden zersört! Exif-header bleibt erhalten (ausprobiert), wobei der Resolution-Tag auf die neue Auflösung angepaßt wird:
mogrify -verbose -resize 1600x1600 *.jpg
Alle Bilder im Verz auf eine Fläche von 10000 Pixel skalieren, wobei das Seitenverhältnis erhalten bleibt, Origiale werden zerstört(!):
mogrify -resize 10000@ *.jpg
-scale
is faster as -resize
, but quality is lower. mogrify is part of ImageMagick.
A script to convert from one image file format to another:
#!/bin/bash oldext=pcd newext=jpg command=convert for file in *.$oldext ; do base=$(basename $file .$oldext) echo $command $base.$oldext $base.$newext $command $base.$oldext $base.$newext done
convert is part of ImageMagick.
jhead -st thub.jpg bild.jpg - Save Thumbnail in thumb.jpg jhead -st "thumbnails/&i" *.jpg - Save thumbnails in subdir jhead -dt *.jpg - Delete thumbnails
gthumb kuickshow gqview → geeqie nview eog display seejpeg
space display the next image backspace display the former image Ctl-D delete an image file Ctl+Z undo last image transformation < halve the image size. . return to the original image size. > double the image size
space display the next image backspace display the former image Ctl-D delete an image file
Options: xome.net/projects/jigl/