commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Holger Veltrup (JIRA)" <>
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
             Project: Commons Sanselan
          Issue Type: Bug
            Reporter: Holger Veltrup
         Attachments: test.tif

I try to get a BufferedImage:

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:
	at org.apache.sanselan.formats.tiff.datareaders.DataReader.decompress(
	at org.apache.sanselan.formats.tiff.datareaders.DataReaderStrips.readImageData(
	at org.apache.sanselan.formats.tiff.TiffImageParser.getBufferedImage(
	at org.apache.sanselan.formats.tiff.TiffDirectory.getTiffImage(
	at org.apache.sanselan.formats.tiff.TiffImageParser.getBufferedImage(
	at org.apache.sanselan.Sanselan.getBufferedImage(
	at org.apache.sanselan.Sanselan.getBufferedImage(
	at BufferedImageTest.main(

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

View raw message