36.18 Metadata for Images

20190907 gif images do not have EXIF data which is part of the specification for jpg images. gif images do have metadata though supporting comment tags and embedded XMP metadata/tags. Here we add a Date to a gif image:

$ exiftool photo.gif
ExifTool Version Number         : 10.80
File Name                       : photo.gif
Directory                       : .
File Size                       : 2028 kB
[...]
File Type                       : GIF
File Type Extension             : gif
MIME Type                       : image/gif
GIF Version                     : 89a
Image Width                     : 640
Image Height                    : 480
Frame Count                     : 11
Duration                        : 1.65 s
[...]
Frame Count                     : 11
Duration                        : 1.65 s
Image Size                      : 640x480
Megapixels                      : 0.307

$ exiftool -Date="2019:02:14 12:30:30.0713" photo.gif 

$ exiftool photo.gif
ExifTool Version Number         : 10.80
File Name                       : photo.gif
Directory                       : .
File Size                       : 2028 kB
[...]
File Type                       : GIF
File Type Extension             : gif
MIME Type                       : image/gif
GIF Version                     : 89a
Image Width                     : 640
Image Height                    : 480
[...]
Date                            : 2019:02:14 12:30:30.0713
[...]
Frame Count                     : 11
Duration                        : 1.65 s
Image Size                      : 640x480
Megapixels                      : 0.307

Notice the addition of a Date field in the photo’s metadata.



Your donation will support ongoing availability and give you access to the PDF version of the book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2021 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0.