Uploaded image for project: 'XMLGraphicsCommons'
  1. XMLGraphicsCommons
  2. XGC-119

Problem with openjdk 11 and tiff (gray)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 2.3
    • image codecs
    • None
    • Patch

    Description

      Hello,

      I use fop to create pdf files from ".fo"

      I have a conversion problem with openjdk 11 and tiff (gray).

      here is the exception:

      java.lang.UnsupportedOperationException: null
      at com.sun.imageio.plugins.tiff.TIFFImageReader.readRaster(TIFFImageReader.java:927) ~[?:?]
      at org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderImageIO.getFallbackBufferedImage(ImageLoaderImageIO.java:377) ~[xmlgraphics-commons-2.3.jar:2.3]
      at org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderImageIO.loadImage(ImageLoaderImageIO.java:159) ~[xmlgraphics-commons-2.3.jar:2.3]
      at org.apache.xmlgraphics.image.loader.pipeline.ImageProviderPipeline.execute(ImageProviderPipeline.java:153) ~[xmlgraphics-commons-2.3.jar:2.3]
      at org.apache.xmlgraphics.image.loader.pipeline.ImageProviderPipeline.execute(ImageProviderPipeline.java:98) ~[xmlgraphics-commons-2.3.jar:2.3]
      at org.apache.xmlgraphics.image.loader.ImageManager.getImage(ImageManager.java:269) ~[xmlgraphics-commons-2.3.jar:2.3]
      at org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingImageHandler(AbstractIFPainter.java:159) ~[fop-core-7.0.jar:?]
      at org.apache.fop.render.pdf.PDFPainter.drawImageUsingURI(PDFPainter.java:218) ~[fop-core-7.0.jar:?]
      

      with openjdk 11, in the class TIFFImageReader the method "readRaster" throw  UnsupportedOperationException

      in xmlgraphics-commons, there is a call to the method "javax.imageio.ImageReader.readRaster (pageIndex, param)", which throw  the exception.

       thank you.

      Attachments

        1. patch.patch
          3 kB
          zouari
        2. test.fo
          0.5 kB
          zouari
        3. test.tif
          15 kB
          zouari

        Activity

          People

            Unassigned Unassigned
            nour-eddine zouari
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: