Closed JoshuaAPhillips closed 1 year ago
This is a new error to me, but my best guess is that ImageMagick is writing out the TIFFs using RGBA (i.e., with an alpha channel). The TIFF format supports alpha channels, but libtiff's JPEG compressor (which LibVips uses) does not.
Try adding -alpha off
to the convert
command when you compress the images.
Again, this is just a guess (both the cause and the suggested fix), so I can't guarantee the results, but it's a pretty low effort option to try and see if it works.
It worked - thank you so much for this!
Hello all,
I'm trying to compress my .tif files to slim them down from a bulky ~100mb, and am receiving an error message when trying to access the live files. I'm using ImageMagick to convert the images, with the following command:
The only thing I've changed since initially generating the images is adding the
-compress jpeg
flag.My images convert and compress without a hitch and once uploaded through S3, everything seems fine: the image is viewable through a direct link and the Image API json for a given compressed image is accessible, but the images don't appear in Mirador, etc. and when I try to access the .tif for a compressed image through the server endpoint (i.e., a link like this https://llkn576nqxepo6yucgfh2nl2ea0kkigc.lambda-url.eu-west-2.on.aws/iiif/2/m1-8-1/m1-8-1-1/full/max/0/default.tif) I receive a plaintext error message:
The uncompressed images work just fine: I can access them either through a viewer or directly using their URI.
Is this something you can help with?
Thanks, Joshua