MikeKovarik / exifr

📷 The fastest and most versatile JS EXIF reading library.
https://mutiny.cz/exifr/
MIT License
1.04k stars 70 forks source link

Error: ICC header is too short on AVIF image #115

Open SPAHI4 opened 1 year ago

SPAHI4 commented 1 year ago
const data = await exifr.parse(path.join(destDir, filename), {
      tiff: true,
      xmp: true,
      icc: true,
      iptc: true,
      jfif: true,
      exif: true,
      gps: true,
      interop: true,
      translateKeys: true,
      translateValues: true,
      reviveValues: true,
      sanitize: true,
      mergeOutput: true,
    });
{
  data: {
    Make: 'FUJIFILM',
    Model: 'X-T5',
    Software: 'Adobe Photoshop Camera Raw 15.4 (Macintosh)',
    ModifyDate: 2023-06-29T20:27:48.000Z,
    ExposureTime: 0.005,
    FNumber: 7.1,
    ExposureProgram: 'Aperture priority',
    ISO: 800,
    SensitivityType: 1,
    ExifVersion: '2.3.2',
    DateTimeOriginal: 2023-04-29T17:07:16.000Z,
    CreateDate: 2023-04-29T17:07:16.000Z,
    OffsetTime: '+03:00',
    OffsetTimeOriginal: '+04:00',
    OffsetTimeDigitized: '+04:00',
    ShutterSpeedValue: 7.643856,
    ApertureValue: 5.655638,
    BrightnessValue: 5.92,
    ExposureCompensation: -0.67,
    MaxApertureValue: 1,
    MeteringMode: 'Pattern',
    LightSource: 'Unknown',
    Flash: 'Flash did not fire',
    FocalLength: 13,
    CameraElevationAngle: 14.6,
    ColorSpace: 1,
    FocalPlaneXResolution: 3303.855743408203,
    FocalPlaneYResolution: 3303.855743408203,
    FocalPlaneResolutionUnit: 'Centimeter',
    SensingMethod: 'One-chip color area sensor',
    FileSource: 'Digital Camera',
    SceneType: 'Directly photographed',
    CustomRendered: 'Normal',
    ExposureMode: 'Auto',
    WhiteBalance: 'Auto',
    FocalLengthIn35mmFormat: 20,
    SceneCaptureType: 'Standard',
    Sharpness: 'High',
    SubjectDistanceRange: 'Unknown',
    SerialNumber: '2DL00603',
    LensInfo: [ 13, 13, 1.4, 1.4 ],
    LensMake: 'Viltrox',
    LensModel: 'AF 13/1.4 XF',
    LensSerialNumber: '00000404',
    GPSVersionID: '2.2.0.0',
    GPSLatitudeRef: 'N',
    GPSLatitude: [ 41, 1.0651167, 0 ],
    GPSLongitudeRef: 'E',
    GPSLongitude: [ 28, 58.08975, 0 ],
    latitude: 41.017751945,
    longitude: 28.9681625,
    errors: [ [Error: ICC header is too short] ]
  }
}

Image: AVIF with HDR 10 bit, Display P3; SMPTE ST 2084 PQ, same with Rec. ITU-R BT.2100 PQ https://spahi4-photo-dev.s3.eu-north-1.amazonaws.com/0e0d7bfb-c30f-4a55-b319-3630f718203a.avif

matthew-dean commented 7 months ago

Is there AVIF support? It’s not listed as a format