From: Lucía D. R. <ld...@gr...> - 2014-06-04 15:01:31
|
Hi, I'm trying to add Exif information to a JPEG file. I've tried the exif command line tool (v0.6.21) and the libexif API (v0.6.21-1). Everything works fine until I get to the GPS information (Latitude, LatitudeRef, Longitude and LongitudeRef). I'm able to read it if it already exits but i'm not able to create or modify it. Using the exif command line tool (in Mint 16 64bits and also in Ubuntu 12.04 32-bits), like so: exif -c --ifd=GPS --tag=0x0001 --set-value="N" foto-exif.mjpg I get this error: Setting a value for this tag is unsupported! (Same result using --tag=GPSLatitudeRef). Using the libexif API, when I try: exif_entry_initialize (exifentry, tag), the tag is not listed in the switch cases so default it's used and the entry gets FORMAT_UNDEFINED and components=0, which doesn't allocate any memory for the associated data. Even if I try to initialize the entry myself (like in the write-exif.c example) I'm not able to do so for the data field (I get a segmentation fault on exif_mem_alloc(mem, exifentry->size)). Now, I've found a bug report from 2005 ( https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=309127) mentioning the GPS tags editing. In its response it's stated that editing this sort of tags it's possible since exif 0.6.15. Has anything changed since then? If not, would you be so kind as to explain to me what am I doing wrong? I've already tried all I could think of and got nowhere. Thanks, Lucía -- |