Editing JPEG metadata

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
thatkeith
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 383
Joined: Mon Mar 01, 2010 7:13 pm
Contact:

Editing JPEG metadata

Post by thatkeith » Fri Mar 03, 2017 2:19 pm

I want to edit metadata in a JPEG image – but I want to do it, ultimately, in a mobile environment. So my current use of exiftool is out, sadly. I have tried the 'livecodeExif' stack on Github (https://github.com/angerangel/livecodeExif) and that's pretty good... it doesn't show me all tags but I can work on that. The big stumbling block is not being able to WRITE tags back into the file.

I can easily read the innards of a JPEG using binfile and find the relevant exif/xmp data.I can write that back out as a JPEG (binfile again), but it only creates a working image file if I don't alter the number of chars in the file. Which is of course a tad limiting. :D

Any suggestions for me to explore re writing metadata into image files, pure LiveCode methods that could work in a mobile environment?

k
Technical Writer, Meta
University Lecturer
Technical Editor, MacUser (1996-2015)
360 VR media specialist

Post Reply