geosolutions-it / imageio-ext

Additional plugins and extension for the standard Java ImageIO library
Other
139 stars 80 forks source link

TIFF plugin: accept byte-type for fields in getAsInts #297

Open MichiHo opened 4 months ago

MichiHo commented 4 months ago

As noted in https://github.com/geosolutions-it/imageio-ext/issues/296, the TIFF tag "ExtraSamples" can occur with data type BYTE, which currently leads to a failure in the getAsInts method which renders one unable to process the TIFF file e.g. in Geoserver. This simple fix adds support for byte type to the method, which is only used for this and one other TIFF tag.