Uploaded image for project: 'Commons Imaging'
  1. Commons Imaging
  2. IMAGING-141

BufferedImage from TIFF is always 24 or 32 bpp

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • Patch Needed
    • Format: TIFF
    • None

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            joshhighley Josh Highley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: