Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-21725

Decimal values in EXIF metadata raise a NumberFormatException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.10
    • Fix Version/s: 10.10-HF34, 11.4, 2021.0
    • Component/s: DAM
    • Release Notes Summary:
      EXIF metadata with the Float format are extracted without errors.
    • Backlog priority:
      800
    • Sprint:
      nxplatform #18, nxplatform #19
    • Story Points:
      2

      Description

      When uploading the attached image, the binaryMetadataListener raise a NumberFormatException because the exif resolution contains a decimal value.

      Exif standard : https://www.w3.org/2003/12/exif/
      Exif extraction result:

      [{
        "SourceFile": "./AvalonBayNight.jpg",
        "ExifTool:ExifToolVersion": 9.46,
        "File:FileName": "AvalonBayNight.jpg",
        "File:Directory": ".",
        "File:FileSize": "276 kB",
        "File:FileModifyDate": "2017:02:22 00:35:37+00:00",
        "File:FileAccessDate": "2017:02:22 00:35:32+00:00",
        "File:FileInodeChangeDate": "2017:02:22 00:35:37+00:00",
        "File:FilePermissions": "rw-r--r--",
        "File:FileType": "JPEG",
        "File:MIMEType": "image/jpeg",
        "File:CurrentIPTCDigest": "dce7984f2076a1ebf032f88a6ad7f239",
        "File:ExifByteOrder": "Big-endian (Motorola, MM)",
        "File:ImageWidth": 1058,
        "File:ImageHeight": 644,
        "File:EncodingProcess": "Baseline DCT, Huffman coding",
        "File:BitsPerSample": 8,
        "File:ColorComponents": 3,
        "File:YCbCrSubSampling": "YCbCr4:2:0 (2 2)",
        "JFIF:JFIFVersion": 1.01,
        "JFIF:ResolutionUnit": "inches",
        "JFIF:XResolution": 338,
        "JFIF:YResolution": 338,
        "IPTC:CodedCharacterSet": "UTF8",
        "IPTC:ApplicationRecordVersion": 2,
        "IPTC:CopyrightNotice": "                                                                                                                                ",
        "Photoshop:IPTCDigest": "dce7984f2076a1ebf032f88a6ad7f239",
        "EXIF:PhotometricInterpretation": "RGB",
        "EXIF:Make": "FUJIFILM",
        "EXIF:Model": "FinePix S3Pro",
        "EXIF:Orientation": "Horizontal (normal)",
        "EXIF:XResolution": 338.4,
        "EXIF:YResolution": 338.4,
        "EXIF:ResolutionUnit": "inches",
        "EXIF:Software": "Adobe Photoshop CS4 Macintosh",
        "EXIF:ModifyDate": "2012:02:08 11:52:06",
        "EXIF:ColorSpace": "Uncalibrated",
        "EXIF:ExifImageWidth": 4230,
        "EXIF:ExifImageHeight": 2574,
        "XMP:XMPToolkit": "XMP Core 4.4.0",
        "XMP:Rights": "\r\n\t\t\t\t\t",
        "Composite:ImageSize": "1058x644"
      }]
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours
                  4h