Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go

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.


Copyright © 1995-2019 Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
Brought to you by Togaware and the author of open source software including Rattle and wajig.
Also the author of Data Mining with Rattle and Essentials of Data Science.