exif-py icon indicating copy to clipboard operation
exif-py copied to clipboard

no EXIF tags from PNG files

Open diefau opened this issue 1 year ago • 3 comments

I have many PNG files (under Linux), where the exifread only returns WARNING:exifread:PNG file does not have exif data.

If I set the logging.level to DEBUG, I get this:

DEBUG:exifread:PNG format recognized in data[0:8]=89504e470d0a1a0a
DEBUG:exifread:PNG found chunk IHDR
DEBUG:exifread:PNG found chunk zTXt
DEBUG:exifread:PNG found chunk zTXt
DEBUG:exifread:PNG found chunk iCCP
DEBUG:exifread:PNG found chunk iTXt
DEBUG:exifread:PNG found chunk cICP
DEBUG:exifread:PNG found chunk IDAT
...
DEBUG:exifread:PNG found chunk IDAT
DEBUG:exifread:PNG found chunk IEND
WARNING:exifread:PNG file does not have exif data.

JPG and TIFF files (exported by darktable from the same RAW) work and exiv2 can show the EXIF tags of the PNG.

diefau avatar Sep 04 '24 14:09 diefau

Please share a sample file which can be added to the test resources, thanks.

ianare avatar Apr 26 '25 23:04 ianare

Sorry for the long delay, in the meantime I forgot where these files are. Now I "stumbled" over one, but the size (141MB) seems to big to upload it.-( Is there a share on github, where I can upload it?

diefau avatar Aug 29 '25 16:08 diefau

Sorry for the long delay, in the meantime I forgot where these files are. Now I "stumbled" over one, but the size (141MB) seems to big to upload it.-( Is there a share on github, where I can upload it?

No worries, you can try to compress the image data without modifying the exif data.

ianare avatar Aug 30 '25 19:08 ianare