|Matteo Cypriani 8170f37c7a [graphics] shellcheck bypass||11 months ago|
|README.md||1 year ago|
|apply-exif-orientation.sh||1 year ago|
|tiff-batch-convert.sh||11 months ago|
apply-exif-orientation.sh retrieves the Orientation EXIF tag from an image
file and rotates the actual image data according to the said orientation. The
EXIF Orientation tag is deleted in the process. The goal is to allow the image
to be displayed correctly by tools that don’t handle EXIF metadata (such as
EXIF information is manipulated using exiftool, shipped with the
Image::ExifTool Perl module (Debian package:
Image is rotated using ImageMagick’s
Warning: no backup of the original file is made!
tiff-batch-convert.sh converts TIFF images to another format of your choice,
such as JPEG.
Use case: you have a bunch of albums that you scanned to TIFF to preserve quality, with a good resolution, each album being in its own directory. But TIFFs are big; you want to generate compressed versions of the albums, possibly down-scalling the images, to share on the Internet or copy them to your smartphone.
tiff-batch-convert.sh <QUALITY> <DESTINATION> <ALBUM1> [ALBUM2 [...]]
impacts the resolution of the converted pictures; it can be “low”, “medium” or “high”. Use “high” for no rescaling. The actual size of the pictures for “low” and “medium” is hard-coded in the script (see “Limitations and bugs” below).
<DESTINATION> is the base directory in which the converted albums will be
stored; each album will be in a separate sub-folder
For example, this will convert every album under
$HOME/Pictures/my_albums_tiff and store the result under
/mnt/usb0/my_albums_lowres (supposedly a USB drive):
tiff-batch-convert.sh /mnt/usb0/my_albums_lowres $HOME/Pictures/my_albums_tiff/*
Limitations and bugs:
<DESTINATION>, even if the original albums are stored in different places. It is easy to modify this behaviour in the script if needed.
convertfrom ImageMagick (pkgsrc: ImageMagick, Debian: imagemagick)
tiffinfofrom libtiff (pkgsrc: tiff, Debian: libtiff-tools)