libvips / build-win64-mxe

79 stars 15 forks source link

Libtiff issue while building --with-jepgli #69

Open euzada opened 4 days ago

euzada commented 4 days ago

Hi @jcupitt and @kleisauke,

I have a python script to stich images and save the final image into tiff using:

im.tiffsave(output_filename + extension, compression="jpeg", bigtiff=True, tile=True,
                    tile_width=256, tile_height=256, 
                    pyramid=True)

I build libvips V 8.15.2 with jepg-turbo and jpegli. For jpeg-turbo, the stichwork and the final image is generated with no issue. But if I use jpegli instead, I got an error.

Assertion failed: sp->cinfo.comm.is_decompressor, file /var/tmp/tmp-tiff-x86_64-w64-mingw32.shared.posix.web/tiff-4.6.0/libtiff/tif_jpeg.c, line 1115

I tested V8.16, and the same issue occurred. or

Assertion failed: sp->cinfo.comm.is_decompressor, file /var/tmp/tmp-tiff-x86_64-w64-mingw32.shared.web/tiff-4.7.0/libtiff/tif_jpeg.c, line 1089

Any idea what can cause the issue? looking into libtiff, I beleive the issue could be from the following lines: libtiff.