commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Holger Veltrup (JIRA)" <j...@apache.org>
Subject [jira] Created: (SANSELAN-30) unknown compression: 3 with TIFF
Date Wed, 23 Sep 2009 12:07:15 GMT
unknown compression: 3 with TIFF
--------------------------------

                 Key: SANSELAN-30
                 URL: https://issues.apache.org/jira/browse/SANSELAN-30
             Project: Commons Sanselan
          Issue Type: Bug
            Reporter: Holger Veltrup
         Attachments: test.tif

I try to get a BufferedImage:

import java.io.File;
import java.awt.image.BufferedImage;
import org.apache.sanselan.Sanselan;
public class BufferedImageTest {
    public static void main(String[] args) throws Exception {
        BufferedImage img = Sanselan.getBufferedImage(new File(args[0]));
    }
}

This throw a org.apache.sanselan.ImageReadException if I use a special tiff (test.tif is attached)
This TIFF was created with a scanner

Exception in thread "main" org.apache.sanselan.ImageReadException: Tiff: unknown compression:
3
	at org.apache.sanselan.formats.tiff.datareaders.DataReader.decompress(DataReader.java:135)
	at org.apache.sanselan.formats.tiff.datareaders.DataReaderStrips.readImageData(DataReaderStrips.java:96)
	at org.apache.sanselan.formats.tiff.TiffImageParser.getBufferedImage(TiffImageParser.java:505)
	at org.apache.sanselan.formats.tiff.TiffDirectory.getTiffImage(TiffDirectory.java:163)
	at org.apache.sanselan.formats.tiff.TiffImageParser.getBufferedImage(TiffImageParser.java:441)
	at org.apache.sanselan.Sanselan.getBufferedImage(Sanselan.java:1286)
	at org.apache.sanselan.Sanselan.getBufferedImage(Sanselan.java:1253)
	at BufferedImageTest.main(BufferedImageTest.java:6)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message