You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Josh Highley (JIRA)" <ji...@apache.org> on 2014/10/27 20:55:33 UTC

[jira] [Updated] (IMAGING-141) BufferedImage from TIFF is always 24 or 32 bpp

     [ https://issues.apache.org/jira/browse/IMAGING-141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Josh Highley updated IMAGING-141:
---------------------------------
    Description: When getting a BufferedImage from a TIFF, TiffImageParser.getBufferedImage gets the TIFF's BPP from the TIFF tags, but at the end ImageBuilder.getBufferedImage() will always set the BufferedImage ColorModel BPP to 32 for images with alpha and 24 bpp otherwise.  Many TIFFs are 1 bpp (G3 and G4) so the BufferedImage should also be 1 bpp.  (was: When getting a BufferedImage from a TIFF, TiffImageParser.getBufferedImage gets the TIFF's BPP from the TIFF tags, but at the end ImageBuilder.getBufferedImage() will always set the BufferedImage ColorModel BPP to 32 for images with alpha and 24 bpp otherwise.  Many TIFFs are 1 bpp (G4 and G6) so the BufferedImage should also be 1 bpp.)

> BufferedImage from TIFF is always 24 or 32 bpp
> ----------------------------------------------
>
>                 Key: IMAGING-141
>                 URL: https://issues.apache.org/jira/browse/IMAGING-141
>             Project: Commons Imaging
>          Issue Type: Bug
>          Components: Format: TIFF
>    Affects Versions: 1.x
>            Reporter: Josh Highley
>
> When getting a BufferedImage from a TIFF, TiffImageParser.getBufferedImage gets the TIFF's BPP from the TIFF tags, but at the end ImageBuilder.getBufferedImage() will always set the BufferedImage ColorModel BPP to 32 for images with alpha and 24 bpp otherwise.  Many TIFFs are 1 bpp (G3 and G4) so the BufferedImage should also be 1 bpp.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)