Skip to content

no EXIF tags from PNG files #201

Description

@diefau

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.

Activity

  1. ianare commented on Apr 26, 2025

    @ianare
    Owner

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

  2. diefau commented on Aug 29, 2025

    @diefau
    Author

    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?

  3. ianare commented on Aug 30, 2025

    @ianare
    Owner

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions