commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno P. Kinoshita (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IMAGING-217) ImageMetadata NULL returned from Imaging.getMetadata() for JPEG
Date Thu, 07 Jun 2018 08:16:00 GMT

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

Bruno P. Kinoshita commented on IMAGING-217:
--------------------------------------------

Will debug another day, but from JHove's message, I suspect the metadata is malformed.
{code:java}
Status: Well-Formed, but not valid
  ErrorMessage: File does not begin with SPIFF, Exif or JFIF segment{code}

> ImageMetadata NULL returned from Imaging.getMetadata() for JPEG
> ---------------------------------------------------------------
>
>                 Key: IMAGING-217
>                 URL: https://issues.apache.org/jira/browse/IMAGING-217
>             Project: Commons Imaging
>          Issue Type: Bug
>          Components: Format: JPEG
>            Reporter: Ritesh Srivastava
>            Priority: Blocker
>         Attachments: P1002265.JPG
>
>
> The Imaging.getMetadata() API is failing for JPEG Image File (Attached) -
> The same file ImageInfo is geting pulled via Imaging.getImageInfo()
> {code:java}
> File imageFile = new File("D:\\sample_files\\P1002265.jpg");
> ImageInfo imageInfo = Imaging.getImageInfo(imageFile);
> System.out.println(imageInfo);
> ImageMetadata imageMetadata = Imaging.getMetadata(imageFile);
> System.out.println(imageMetadata);
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message