0 Replies Latest reply: Aug 11, 2011 9:24 AM by 881880 RSS

    TIFF unsupported compression type

      Dear all

      I want to get the RGB values of every pixel of a TIFF-File. Therefore I use JAI. My first steps are...

      PlanarImage image = JAI.create("fileload", in_path);
      BufferedImage bufferedImage = image.getAsBufferedImage();

      ...because in other cases (JPEG, PNG, BMP) I used a BufferedImage to get the RGBValues.

      But when I execute this code I get the Exception below. I founded that the 'unsupported compression type' perhaps means that the tiff file has non-bilevel data.

      Can you help me?

      Thanks Thomas

      Caused by: javax.media.jai.util.ImagingException: All factories fail for the operation "tiff"
           at javax.media.jai.OperationRegistry.invokeFactory(Unknown Source)
           at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(Unknown Source)
           at javax.media.jai.registry.RIFRegistry.create(Unknown Source)
           at com.sun.media.jai.opimage.StreamRIF.create(Unknown Source)
           ... 23 more
      Caused by: java.lang.reflect.InvocationTargetException
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
           at java.lang.reflect.Method.invoke(Unknown Source)
           at javax.media.jai.FactoryCache.invoke(Unknown Source)
           ... 27 more
      Caused by: java.lang.RuntimeException: Unsupported compression type.
           at com.sun.media.jai.codecimpl.TIFFImage.<init>(Unknown Source)
           at com.sun.media.jai.codecimpl.TIFFImageDecoder.decodeAsRenderedImage(Unknown Source)
           at com.sun.media.jai.opimage.CodecRIFUtil.create(Unknown Source)
           at com.sun.media.jai.opimage.TIFFRIF.create(Unknown Source)
           ... 32 more