You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Adalberto Gonzaga (JIRA)" <ji...@apache.org> on 2016/05/15 20:54:12 UTC

[jira] [Commented] (IMAGING-183) Error while reading Canon CR2 RAW image: Can't find rows per strip field.

    [ https://issues.apache.org/jira/browse/IMAGING-183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15283963#comment-15283963 ] 

Adalberto Gonzaga commented on IMAGING-183:
-------------------------------------------

The following piece of code is throwing the exception:

{noformat}
IImageMetadata metadata = Sanselan.getMetadata(new File("./myFile.CR2"));
{noformat}

Here follows the exception stack:

{noformat}
org.apache.sanselan.ImageReadException: Can't find rows per strip field.
	at org.apache.sanselan.formats.tiff.TiffReader.getTiffRawImageData(TiffReader.java:471)
	at org.apache.sanselan.formats.tiff.TiffReader.readDirectory(TiffReader.java:216)
	at org.apache.sanselan.formats.tiff.TiffReader.readDirectory(TiffReader.java:110)
	at org.apache.sanselan.formats.tiff.TiffReader.readDirectories(TiffReader.java:101)
	at org.apache.sanselan.formats.tiff.TiffReader.read(TiffReader.java:448)
	at org.apache.sanselan.formats.tiff.TiffReader.readContents(TiffReader.java:438)
	at org.apache.sanselan.formats.tiff.TiffImageParser.getMetadata(TiffImageParser.java:124)
	at org.apache.sanselan.Sanselan.getMetadata(Sanselan.java:978)
	at org.apache.sanselan.Sanselan.getMetadata(Sanselan.java:971)
	at org.apache.sanselan.Sanselan.getMetadata(Sanselan.java:946)
	at adalbertogonzaga.photoplaces.exif.ExifGPSUtil.getGPSLocationFromFile(ExifGPSUtil.java:71)
	at adalbertogonzaga.photoplaces.exif.ExifGPSUtil.main(ExifGPSUtil.java:100)
Exception in thread "main" java.lang.NullPointerException
	at adalbertogonzaga.photoplaces.exif.ExifGPSUtil.main(ExifGPSUtil.java:101)
{noformat}

> Error while reading Canon CR2 RAW image: Can't find rows per strip field.
> -------------------------------------------------------------------------
>
>                 Key: IMAGING-183
>                 URL: https://issues.apache.org/jira/browse/IMAGING-183
>             Project: Commons Imaging
>          Issue Type: Bug
>          Components: Format: TIFF
>    Affects Versions: 0.97
>            Reporter: Adalberto Gonzaga
>            Priority: Minor
>
> When trying to extract some metadata from a Canon CR2 (RAW) image file, it thrown an exception when calling the getMetadata() method:
> org.apache.sanselan.ImageReadException: Can't find rows per strip field.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)