Closed lovell closed 6 months ago
Little endian EXIF without the Exif\0\0 prefix is currently being ignored as the 3rd/4th bytes will be hex 2a00 rather than (big endian) 002a.
Exif\0\0
2a00
002a
sharp v0.33.0 onwards supports EXIF in PNG, defaulting to little endian without prefix, hence this problem appearing now.
The test file was created via:
.withExif({ IFD0: { Software: "sharp" } })
This should address https://github.com/devongovett/exif-reader/issues/34
Just patched locally with patch-package, and it work well. It woll be great to be merged and published.
Little endian EXIF without the
Exif\0\0
prefix is currently being ignored as the 3rd/4th bytes will be hex2a00
rather than (big endian)002a
.sharp v0.33.0 onwards supports EXIF in PNG, defaulting to little endian without prefix, hence this problem appearing now.
The test file was created via:
This should address https://github.com/devongovett/exif-reader/issues/34