-
Notifications
You must be signed in to change notification settings - Fork 75
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
Grey scale image decoder color type : InterpretationWithBits(RGBPalette, [8]) #202
Comments
Just to chime in, although somewhat unrelated, this image is not technically greyscale. Instead, it utilizes the ColorMap feature specified in the TIFF format, which employs a lookup table (e.g., x => RGB(r, g, b)). While the data storage type is 8-bit, the lookup table provides 16bit RGB colors. Here's the tiffinfo output for Barbara.tif:
Barbara.tif contains a lookup table that does indeed generate greyscale colors, but they are techincally represented as 16bit RGB:
Finally, why its not working for you: Line 79 in a67f505
Some TIFF libraries collapse the color resolution if the color map is consistently grey scale, and some retain it at its full resolution. |
Hi,
Maybe this is just me being new to rust, but i've had an issue reading the color type from a greyscale 8bits tif image.
Here is the image I've had some issues with : Barbara.tif
When trying to read the color type of the image from the decoder I get the following error:
UnsupportedError(InterpretationWithBits(RGBPalette, [8])).
This also leads to an incorrect reading in the image crate image open function: image::open() ->
Unsupported(UnsupportedError { format: Exact(Tiff), kind: GenericFeature("RGBPalette with [8] bits per sample is unsupported") }).
The text was updated successfully, but these errors were encountered: