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:15:00 GMT

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

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

{noformat}
$ jhove P1002265.JPG
Jhove (Rel. 1.6, 2011-01-04)
 Date: 2018-06-07 20:14:09 NZST
 RepresentationInformation: P1002265.JPG
  ReportingModule: JPEG-hul, Rel. 1.2 (2007-02-13)
  LastModified: 2018-06-07 20:10:17 NZST
  Size: 6297644
  Format: JPEG
  Status: Well-Formed, but not valid
  ErrorMessage: File does not begin with SPIFF, Exif or JFIF segment
   Offset: 138
  MIMEtype: image/jpeg
  JPEGMetadata:
   CompressionType: Huffman coding, Baseline DCT
   Images:
    Number: 1
    Image:
     NisoImageMetadata:
      ByteOrder: big_endian
      CompressionScheme: JPEG
      ImageWidth: 5184
      ImageHeight: 3456
      BitsPerSample: 8, 8, 8
      BitsPerSampleUnit: integer
      SamplesPerPixel: 3
     PixelAspectRatio:
      PixelAspectRatioX: 0
      PixelAspectRatioY: 0
     RestartInterval: 0
     Scans: 1
     QuantizationTables:
      QuantizationTable:
       Precision: 8-bit
       DestinationIdentifier: 0{noformat}

> 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