Skip to content

Conversation

@aelkiss
Copy link
Member

@aelkiss aelkiss commented Dec 5, 2025

  • avoids deprecation warning from netpbm
  • fixes issue with image showing up as a "negative" in preview on Mac

I tested both an 8-bit greyscale and 24-bit color image compressed with pamtotiff -adobeflate with:

  • Windows default applications: Photos, Paint, Windows Photo Viewer, Snipping Tool
  • IrfanView on Windows
  • Dragging and dropping an image into Powerpoint on Windows
  • Preview and Safari on Mac
  • GIMP on Windows, Mac, and Linux
  • eog on Linux (default image viewer in Ubuntu 24.04)
  • ImageMagick on Linux
  • evince (document preview/reader) on Linux
  • shotwell (photo management app) on Linux

I also changed the tests to use exiftool rather than identify from imagemagick because imagemagick didn't differentiate between Deflate and AdobeDeflate compression (it just reports 'zip' for both), and exiftool (despite being somewhat of a pain to work with) is already a dependency.

* avoids deprecation warning from netpbm
* fixes issue with image showing up as a "negative" in preview on Mac
@aelkiss aelkiss requested a review from moseshll December 5, 2025 22:06
@aelkiss
Copy link
Member Author

aelkiss commented Dec 5, 2025

Expected behavior is that:

Copy link
Contributor

@moseshll moseshll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as advertised. Happy to see the additional testing and the way it has been cleaned up, all good! APPROVE

@aelkiss aelkiss merged commit 5c3a0f0 into main Dec 8, 2025
2 checks passed
@aelkiss aelkiss deleted the ETT-1118-adobeflate branch December 8, 2025 15:42
@aelkiss
Copy link
Member Author

aelkiss commented Dec 8, 2025

@moseshll Feel free to go ahead and deploy this along with #171

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants