Closed Spalar closed 2 months ago
Hello,
Full TIFF support would require a redesign of the core components. TIFF can contain layers. Cramming all of them into another format might not be possible.
This is beyond the scope of this program. There are too many edge cases to deal with.
Let me explain further.
I can merge all layers into one with ImageMagick by adding -background none -layers merge
while converting TIFF to PNG. From there I can encode it to either AVIF or JPEG XL. Unfortunately, if there is an embedded thumbnail, a black rectangle will appear in the top-left corner.
GIMP saves TIFFs with a thumbnail by default...
I'm certain there will be many more similar issues to account for. The ImageMagick on my Linux cannot even open TIFFs - convert-im6.q16: Deprecated and troublesome old-style JPEG compression mode
.
I'd prefer to focus on other features. For processing TIFFs use XnConvert instead. It handles all those edge cases rather well. You can even use it to generate PNGs, which my program will accept.
Thanks for the suggestions ! All these points will help to sort out other edge cases for me. I'll work in the same direction, will try XnConvert.
Update: I like the Size Control of File in XL-Converter which is my basic requirement. XnConvert looks too complicated for Tiff to Jpeg task I specifically need. Will use your code and build on to have the features I need :)
Hi Jacob, Thanks for a great software and easy to use ! I understand that addition of new format can be tedious. As you suggested in your code, I tried to add Tiff with Image Magick. I was able to convert tiff files but with some caveats.
JPEG
only reduced to a certain extent.JPEG
. Hence multi downscale options might be required forTIFFs
with priority, which one to do first.Image Magick
as encoder manually as I knew it supported (Other one Failed). WhenTiff
Image is used, automatic change toImage Magick
will require some modifications.Try to add this when you have time !