EXIF decoder required

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Happyrever
Posts: 55
Joined: Sat Sep 10, 2011 12:22 pm

EXIF decoder required

Post by Happyrever » Sat Sep 10, 2011 12:31 pm

I am trying to find the structure of EXIF in regard to photos.
Can anyone provide a suitable routine of show how the metadata in the photo can be decoded?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: EXIF decoder required

Post by Mark » Sat Sep 10, 2011 12:58 pm

Hi,

Exif-data are just XML-data that's included in the picture file. You can just read from the file starting at the first XML tag until the last and parse the data. There is an EXIF stack wandering around somewhere, just search for it. You can also use the open-source ExifTools command line utility to read from and write to the EXIF section of a picture file.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply