-
-
Notifications
You must be signed in to change notification settings - Fork 648
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
Add support for fractional tiff values (eg. 10 or 12 bits per pixel) #3948
Comments
Hi @tpendragon, libvips It wouldn't be so difficult to add, but some poor schmuck would have to sit down and do the work. |
I've tagged this as an enhancement issue so it doesn't get lost. |
samples_per_pixel
not a whole number of bytes
@jcupitt Ah I'm so happy to have an expert weigh in, thank you! Do you know if there's a workaround? Like can I identify that it has fractional values and use some other library you might know about to convert it and then feed that converted thing into vips? |
🤦 sorry, I should have offered a workaround. You can load via imagemagick using
It'll be a lot slower than the usual libvips tiff loader, but it will work. |
Great! Do you happen to know how to make a really small version of this kind of file so I can put it in my test suite? I really appreciate all the help here. |
ImageMagick's
A 100x100 pixel 10 bit image, 12kb. |
Not sure what's going on here - first time we've run into this issue, but we have a whole run of images with this problem and wonder if we could get some advice on if this is a bug or what, as the images appear to open in viewers fine.
Tiffinfo:
Tiffsave:
Image: https://figgy-high-traffic-downloads.s3.us-east-2.amazonaws.com/00000014.tif
The text was updated successfully, but these errors were encountered: