[Digikam-devel] [Bug 210226] Adding Geolocation to image causes Flickr to not recognize EXIF data

Gerald Cox gbcox at bzb.us
Thu Oct 15 20:20:00 BST 2009


https://bugs.kde.org/show_bug.cgi?id=210226





--- Comment #25 from Gerald Cox <gbcox bzb us>  2009-10-15 21:19:57 ---
OK, I think I have figured out exactly what is going on.  

When I convert a JPG to a PNG file, the conversion causes corruption of the
EXIF data buy adding the "Exif.Image.0x0001".  This corrupted tag is causing
Flickr and EXIFTOOL not to function properly.  EXIV2 shows the correct part of
the EXIF data and issues a warning regarding "Exif.Image.0x0001".  I found I
can use EXIV2 to remove the corrupted tag by issuing the following command:

exiv2 -M "del Exif.Image.0x0001" image_file_name

wildcards also appear to work, so I can delete the corrupted tag for all png
files in the directory by entering:

exiv2 -M "del Exif.Image.0x0001" *.png

You should be able to recreate by taking a jpg file, and using the convert
function (Select the file, then use Batch, Convert).

If you enter exiv2 -pa file_name - you will see the warning:
Warning: Directory Image, entry 0x0001 has unknown Exif (TIFF) type 0; setting
type size 1.
after you do the convert from jpg to png.  

Then try:  exiftool -a -u -g1 file_name

You will not see the complete EXIF information.  

Then delete the invalid tag:

exiv2 -M "del Exif.Image.0x0001" image_file_name

and when you run the exiftool command again, everything should be OK.

So the badness is being introduced by whatever does the convert from JPG to
PNG.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Digikam-devel mailing list