hMatoba / Piexif

Exif manipulation with pure python script.
MIT License
367 stars 81 forks source link

What are the supported formats? #48

Closed giumas closed 6 years ago

giumas commented 6 years ago

By looking at the docs (http://piexif.readthedocs.io/en/latest/functions.html#load), they should be JPEG, WebP, and TIFF.

If TIFF is fully supported, do you have an example of how to write EXIF tags of a file with this format?

What about PNG format? If not already supported, do you have plans to add it to this great small library?

hMatoba commented 6 years ago

TIFF: This library doesn't support to write PNG: PNG doesn't support Exif.

giumas commented 6 years ago

I thought that Exif support was recently added to PNG format: https://stackoverflow.com/a/46595665/2741329

Any plan to add writing support for TIFF?

hMatoba commented 6 years ago

Thank you for letting me know.

There is no plan to add wrting for TIFF.

giumas commented 6 years ago

Thank you for the quick feedback!

About the no plan for TIFF writing, is it because of the required coding time? Or lack of interest from your side?

hMatoba commented 6 years ago

TIFF's header isn't called 'Exif'. It is called '(TIFF|File|Image) header'. So i think it isn't exif, but it looks like exif. This library is for exif. I would drop support for TIFF.

hMatoba commented 6 years ago

For PNG. https://github.com/hMatoba/Piexif/issues/49

giumas commented 6 years ago

I found this for TIFF.

hMatoba commented 6 years ago

It is called 'Image File Header' in official specification. There is no 'Exif' in this document. https://www.itu.int/itudoc/itu-t/com16/tiff-fx/docs/tiff6.pdf

http://www.alternatiff.com/resources/TIFFPM6.pdf