Mogrify & stamp exif data
Posted: 2011-09-04T07:22:58-07:00
I've been trying to find a way to batch resize jpeg images and at the same time stamp time, date and filename. My solution works, but I'ts not perfect, so I would really appreciate some help!
My jpg files are located in a (linux) folder structure like this: /YYYY/YYYYMM/jpg files
My solution is a two-step solution:
(to include the filename of each jpg in the folder structure as a UserComment)
(reduce the resize all the photos in my file structure to fit my tv screen, add the original date&time, and user comment).
However:
1. When the filename appears in the picture it is presided by the text “ASCII…” I would like to get rid of this text, but so far I have not been able to figure out how.
2. Exactly what exif tags can be put into my mogrify command line like this? I have not been able to find any pattern to this.
3. Is there an easier way to achieve this?
In advance - thanks a lot for any help!
My jpg files are located in a (linux) folder structure like this: /YYYY/YYYYMM/jpg files
My solution is a two-step solution:
Code: Select all
exiftool -r -overwrite_original '-UserComment<${filename}' /home/bjornar/FOTOTEST/
Code: Select all
mogrify -resize 1920x1080 -fill red -gravity SouthWest -font URWGothicBook -pointsize 60 -annotate +0+5 "date: %[exif:DateTimeOriginal] %[exif:UserComment]" /home/bjornar/FOTOTEST/*/*/*
However:
1. When the filename appears in the picture it is presided by the text “ASCII…” I would like to get rid of this text, but so far I have not been able to figure out how.
2. Exactly what exif tags can be put into my mogrify command line like this? I have not been able to find any pattern to this.
3. Is there an easier way to achieve this?
In advance - thanks a lot for any help!