AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2022.11.12 21:50 "[Tiff] Fatal error with JPEG compression", by Miguel Medalha
2022.11.12 22:52 "Re: [Tiff] Fatal error with JPEG compression", by Toby Thain
2022.11.13 01:45 "Re: [Tiff] Fatal error with JPEG compression", by Bob Friesenhahn
2022.11.13 01:55 "Re: [Tiff] Fatal error with JPEG compression", by Miguel Medalha
2022.11.13 02:00 "Re: [Tiff] Fatal error with JPEG compression", by Bob Friesenhahn

2022.11.12 21:50 "[Tiff] Fatal error with JPEG compression", by Miguel Medalha

While trying to compress any TIFF with JPEG compression, using either tiffcp or tiffcrop, the following error messages appear:

JPEGSetupEncode: RowsPerStrip must be multiple of 8 for JPEG

JPEGSetupEncode: RowsPerStrip must be multiple of 16 for JPEG

(this depends on whether we want a RGB or YCbCr file)

Unable to write contiguous strip data for page 0. (tiffcrop)

Error, can't write strip 0. (tiffcp)

I tried all kinds of tiffs from several origins and the result is the same, I cannot use JPEG compression. Does anyone have any clues on why this is happening?

I am doing a cmake build of libtiff, using turbojpeg as the jpeg lib, and everything goes perfectly except for this result.

Thank you.