-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve encoding of TIFF tags #3861
Conversation
I fixed the linting errors and (hopefully) the compile error on Windows. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Rebased again. All ✅ |
@olt Thanks for the PR and for your patience in rebasing! There's one last conflict, if you can clear that then let's merge this for Monday's release. |
- Pass tagtype from v2 directory to libtiff encoder, instead of autodetecting type. - Use explicit types. E.g. uint32_t for TIFF_LONG to fix issues on platforms with 64bit longs. - Add support for multiple values (arrays). Requires type in v2 directory and values must be passed as a tuple. - Add support for signed types (e.g. TIFFTypes.TIFF_SIGNED_SHORT).
Co-authored-by: Andrew Murray <[email protected]>
Thanks! Would be great to still add release notes for this one in https://github.com/python-pillow/Pillow/blob/master/docs/releasenotes/6.1.0.rst. |
Release notes for this one added in #3930. |
I improved the TIFF encoder to support more types (especially arrays). This is required for the GeoTIFF format which encodes geospatial information.
autodetecting type.
platforms with 64bit longs.
directory and values must be passed as a tuple.
Note: I changed the
versionadded 3.0.0
note in the docs as this has been fixed with a3d45e9 which is included in 5.4./cc @radarhere You are probably most familiar with this part.