-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VipsJpeg: Bogus JPEG colorspace -tiff2vips: decompress error tile 0 x 0 #520
Comments
For good measure, I've made a dockerfile where i can reproduce the error. Create file pyvips_test.py and copy the field.tif image into same folder.
Dockerfile
Building Finally running: Yields
|
Hello @petoor, I tried with
So your image can't be read by libtiff. I suppose dask have their own tiff reader which allows a bigger range of colourspaces. Or maybe this is something specific to GDAL? I tried
It's a four-band image, I suppose RGBA, but with JPEG (RGB and CMYK only) compression. I don't think many TIFF readers will be able to handle this. |
Hi @jcupitt Thank you very much for pointing me in the right direction.
will return the bogus error, however, stripping alpha channel will result in a tif readable by pyvips.
In case anyone is having the same question in the future. |
Or straight from the documentation : https://gdal.org/en/stable/programs/gdal_translate.html |
Ah, that's helpful. Thanks for the update @petoor |
Hello.
I have a problem regarding loading a tiff image into memory.
The image is readable by for instance Dask using
from dask.array.image import imread
Could you point me to what im doing wrong?
Versions:
vips: vips-8.16.0 (build from source)
pyvips : 2.2.3
Running Ubuntu 2024.04
The image in question :
Created by open drone map
field_image.zip
The text was updated successfully, but these errors were encountered: