-
Notifications
You must be signed in to change notification settings - Fork 484
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Read exif chunk from a PNG image #475
Comments
@Ciruman can you provide a sample PNG image that contains Exif data? Would you like to submit a PR for this? |
Yes, I will provide a sample image and I will try to create a PR for this. :-) |
@drewnoakes The sample image can be found here:
I am preparing the PR but I thought it is a good idea if you can have a look to the image first. |
@Ciruman thanks for the image. I've added it to the library so that we have a baseline for changes from your PR. |
Pull request: #481 |
Since 2017, PNG supports eXIf chunk. The content is described here:
3.7. eXIf Exchangeable Image File (Exif) Profile
I tried to read the exif metadata of an image by making use of the following methods without success:
ImageMetadataReader.readMetadata
or:
PngMetadataReader.readMetadata
I had a try with the following steps:
Make use of the method
extract
from the classPngChunkReader
with aPngChunkType
eXIfGive the content found in the previous step to the method
processIfd
in the classTiffReader
All metadata was extracted from a PNG image without a problem.
Is there any plan to support PNG eXIf chunks?
Is there any interest in the implementation of it?
I analyzed the images with the tools ExifTool and ImageMagick and they were able to read/write the PNG images.
The text was updated successfully, but these errors were encountered: