foto4lb
- Update: The script now allows you to set the target width of the
- pictures using the -w command-line argument.
Photos from modern digital cameras are generally so large these days that you have to shrink them to use them in a document. I do this a lot, so I automated it.
The foto4lb.zip script shrinks the files it is given to a width of 886 pixels, and shrinks the height by the same factor. It uses exiftool and ImageMagick. The name is a Dutch abbreviation of 'photo for logbook', which is what I most often use this script for. :-)
This particular width was chosen to be able to fit two photos side-by-side in the textblock of my LaTeX-formatted logbook.
To speed up the processing of multiple pictures, this script runs the conversions in parallel on all the cores that your machine has.
| source: | foto4lb.zip |
|---|---|
| GPG signature: | -----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)
iEYEABECAAYFAlDYGXQACgkQEnfvsMMhpyXrwwCfc5HCWj3wcxLOI0sI82GTb2dh
uA0AmwSiPI6zx7J/Fadjqtr5sqdPUDdS
=735N
-----END PGP SIGNATURE-----
|
| SHA256 hash: | a4d5423d23eaf3df23df084ecba9a1a4d6695e14ceacaa2009f81af3f9568902 |
| Requirements: | python, exiftool, ImageMagick |
