From: Andre T. <an...@lc...> - 2013-01-15 16:50:03
|
Hello, Let's say I have an image file "img01.jpg", which was taken using "Super Awesome Phone". This code, http://pastebin.com/ETYrHU3Z, displays the camera model correctly. What I'd like to ask is how the replace "Super Awesome Phone" (which is identified by EXIF_TAG_MODEL) with another value, e.g "Nokia 2112" I added these lines in main(): // init_tag is taken from http://libexif.cvs.sourceforge.net/viewvc/libexif/libexif/contrib/examples/write-exif.c?view=markup entry = init_tag(ed, EXIF_IFD_EXIF, EXIF_TAG_MODEL); exif_set_long(entry->data, FILE_BYTE_ORDER, atol("Nokia 3330")); But it didn't work. Nothing was changed. How could I fix this? -- *Andre Tampubolon* GPG public key:pgp.mit.edu:11371/pks/lookup?op=get&search=0xC6492E7D01AA96CF |