commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Damjan Jovanovic (Resolved) (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SANSELAN-30) unknown compression: 3 with TIFF
Date Fri, 09 Dec 2011 10:30:40 GMT

     [ https://issues.apache.org/jira/browse/SANSELAN-30?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Damjan Jovanovic resolved SANSELAN-30.
--------------------------------------

    Resolution: Duplicate

Duplicate of SANSELAN-48 (CCITT compression).

                
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message