Skip to content
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

Fix missing 'tiff:endian' image property #347

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

Matoking
Copy link
Contributor

@Matoking Matoking commented Nov 5, 2024

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following the existing coding patterns and practices as demonstrated in the repository.

Description

Fix missing 'tiff:endian' image property

HAVE_TIFFISBIGENDIAN macro was removed in
d0b6b48, but the macro was still used for a conditional block in tiff.c responsible for setting the tiff:endian image property. The macro was never set, essentially disabling this functionality.

We can safely remove the conditional compilation and assume TIFFIsBigEndian is always available: we require at least libtiff 4.0.0, while TIFFIsBigEndian was added in 3.7.0.

`HAVE_TIFFISBIGENDIAN` macro was removed in
d0b6b48, but the macro was still used
for a conditional block in `tiff.c` responsible for setting the
`tiff:endian` image property. The macro was never set, essentially
disabling this functionality.

We can safely remove the conditional compilation and assume
`TIFFIsBigEndian` is always available: we require at least libtiff
4.0.0, while `TIFFIsBigEndian` was added in 3.7.0.
@dlemstra dlemstra merged commit 565cba5 into ImageMagick:main Nov 6, 2024
5 checks passed
@dlemstra
Copy link
Member

dlemstra commented Nov 6, 2024

Thanks for fixing this for us. I just pushed a patch to remove the rest of the HAVE_TIFF checks.

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

Successfully merging this pull request may close these issues.

2 participants