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

BufferedImage from TIFF is always 24 or 32 bpp

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Patch Needed
    • Component/s: Format: TIFF
    • Labels:
      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

            • Assignee:
              Unassigned
              Reporter:
              joshhighley Josh Highley
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: