imageio-ext
  1. imageio-ext
  2. IMAGEIO_EXT-25

Geotiff image with JPEG compression don't get converted to RGB correctly

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 1.0.8
    • Fix Version/s: None
    • Component/s: tiff
    • Labels:
      None

      Description

      We have images in geotiff format that don't display correctly (tested in GeoServer 2.1RC2 with no native libs added). It looks like it fails to convert colorspace to RGB.

      Output from gdalinfo:
      Driver: GTiff/GeoTIFF
      Files: 10120415361937809856.tif
      Size is 5119, 5119
      Coordinate System is:
      LOCAL_CS["unnamed",
      UNIT["unknown",1]]
      Origin = (456552.750000000000000,7003661.250000000000000)
      Pixel Size = (1.500000000000000,-1.500000000000000)
      Metadata:
      AREA_OR_POINT=Point
      Image Structure Metadata:
      SOURCE_COLOR_SPACE=YCbCr
      COMPRESSION=JPEG
      INTERLEAVE=PIXEL
      Corner Coordinates:
      Upper Left ( 456552.750, 7003661.250)
      Lower Left ( 456552.750, 6995982.750)
      Upper Right ( 464231.250, 7003661.250)
      Lower Right ( 464231.250, 6995982.750)
      Center ( 460392.000, 6999822.000)
      Band 1 Block=256x256 Type=Byte, ColorInterp=Red
      Band 2 Block=256x256 Type=Byte, ColorInterp=Green
      Band 3 Block=256x256 Type=Byte, ColorInterp=Blue

      As I don't have good knowledge of TIFFDecompressor and TIFFJPEGDecompressor I'm not sure if a colorConverter should be set or not or what is really the problem.

      GIMP opens the image correctly.

        Activity

        Show
        dany111 added a comment - https://github.com/geosolutions-it/imageio-ext/issues/17

          People

          • Assignee:
            Unassigned
            Reporter:
            frho
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: