JPEG-compressed TIFFs generated with libtiff 4.3.0 fail to open in Photoshop due to invalid JPEG marker
Summary
- When I use VIPS to generate JPEG-compressed TIFFs with libtiff 4.3.0 on macOS, Photoshop complains "invalid SOS JPEG marker (Ss, Se, Ah, or Al)" and won't open them.
- With libtiff 4.2.0 on Linux, it's not a problem.
- See libvips#2290 for additional details.
- See this repository for sample images demonstrating the issue.
Version
- 4.3.0
Steps to reproduce
-
On macOS, use Homebrew to install libtiff 4.3.0 and libvips 8.10.
-
Run the command
vips tiffsave <infile> <outfile>.tif --compression jpeg
where
<infile>
is any JPEG or TIFF (and probably any other image, but that's what I've tried).
Platform
- macOS 10.15.7
- libtiff 4.3.0
- libvips 8.10.6
- libjpeg 9d