[GTALUG] Imagemagick and exif data labels question?

Russell rreiter91 at gmail.com
Thu Sep 14 11:45:55 EDT 2017


Thanks I installed exif tool and was able to insert the comment as I need.

Something funny with the encoding tho.

russ at HECTOR:~/SCRIPTS$ exiftool temp1.jpg |grep Comment
Comment : This is the comment.
Warning : Invalid EXIF text encoding for UserComment
User Comment : FM0 FC111110011:zzzzzz0 7 93
05002d03d42de5183d2 cc0 990 02581c9e 023b1c9e 021e1c4c 02011c2c
01e41c53 01c91b47 02461a36 0

Strings output shows the added text comment is positioned on line two, while the exif cmd has the comment in the middle of output. My kludge is not exactly elegant, but I can get started on annotating the images with imagemagick.

russ at HECTOR:~/SCRIPTS$ strings temp1.jpg |sed "1d"|less|head -1
This is the comment.

Thanks also Scott. I think jhead looks interesting but I can work with exiftool to do what I need for now.

Cheers
On September 13, 2017 2:27:49 PM EDT, "Myles Braithwaite 👾" <me at mylesb.ca> wrote:
>Russell via talk wrote:
>> I would like to preserve my comments as exif data and pull them out
>to then label the images in batches using the first example as a
>template.
>> 
>> Is it possible to define your own exif data and mung it into the
>image file? 
>
>You can use exiftool, <https://www.sno.phy.queensu.ca/~phil/exiftool/>.
>
>To add a comment to the file with:
>
>	$ exiftool burt-reynolds.jpg -Comment='Look at Burt Reynolds in a
>Turtle Neck'
>	    1 image files updated
>
>and then extra it with:
>
>	$ exiftool burt-reynolds.jpg -Comment
>	Comment : Look at Burt Reynolds in a Turtle Neck


-- 
Russell
Sent by K-9 Mail


More information about the talk mailing list