Skip to content

dump convert error #90

@Armer7

Description

@Armer7

v: 2.0.0-alpha.0
I load exif from load method. This is it the object:

{
  "0th": {
    "256": 1836,
    "257": 4080,
    "271": "Xiaomi",
    "272": "2201117TY",
    "274": 1,
    "282": [
      72,
      1
    ],
    "283": [
      72,
      1
    ],
    "296": 2,
    "306": "2023:05:05 13:13:27",
    "531": 1,
    "34665": 1,
    "34853": 1
  },
  "Exif": {
    "33434": [
      1,
      50
    ],
    "33437": [
      180,
      100
    ],
    "34850": 0,
    "34855": 57,
    "36864": "0220",
    "36867": "2023:05:05 13:13:27",
    "36868": "2023:05:05 13:13:27",
    "37121": "\u0001\u0002\u0003\u0000",
    "37377": [
      5643,
      1000
    ],
    "37378": [
      169,
      100
    ],
    "37379": [
      0,
      100
    ],
    "37380": [
      0,
      6
    ],
    "37381": [
      169,
      100
    ],
    "37383": 2,
    "37384": 21,
    "37385": 16,
    "37386": [
      4250,
      1000
    ],
    "37520": "290",
    "37521": "290",
    "37522": "290",
    "40960": "0100",
    "40961": 1,
    "40962": 1836,
    "40963": 4080,
    "40965": 1,
    "41495": 0,
    "41729": 0,
    "41986": 0,
    "41987": 0,
    "41989": 0,
    "41990": 0
  },
  "GPS": {
    "1": "N",
    "2": [
      [
        48,
        1
      ],
      [
        28,
        1
      ],
      [
        1151,
        100
      ]
    ],
    "3": "E",
    "4": [
      [
        35,
        1
      ],
      [
        2,
        1
      ],
      [
        4260,
        100
      ]
    ],
    "5": 0,
    "6": [
      80900,
      1000
    ],
    "7": [
      [
        10,
        1
      ],
      [
        13,
        1
      ],
      [
        21,
        1
      ]
    ],
    "27": "ASCII\u0000\u0000\u0000CELLID\u0000",
    "29": "2023:05:05"
  },
  "Interop": {
    "1": "R98"
  }
}

I get error when convert exif object to binary from dump method:

Uncaught Error: Can't convert SceneType in Exif IFD.
Value must be "string". Got "number".
    ValueConvertError exif-library.js:1484
    _toUndefined exif-library.js:1872
    _valueToBytes exif-library.js:1719
    dictToBytes exif-library.js:1956
    dump exif-library.js:2349
    onloadend EditImageFile.vue:248

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions