Hey,
writeMetadata method fails with an error Warning: [minor] Entries in IFD0 were out of sequence. Fixed..
This warning can be ignore and processing should finish fine as it does in native exiftool.
Here is an example of such image (just download it):

UPD:
The stdErr contains such warning causing and error. Probably, can be handled more intelligently here: https://github.com/6over3/exiftool/blob/main/src/index.ts#L406
Hey,
writeMetadatamethod fails with an errorWarning: [minor] Entries in IFD0 were out of sequence. Fixed..This warning can be ignore and processing should finish fine as it does in native exiftool.
Here is an example of such image (just download it):
UPD:
The stdErr contains such warning causing and error. Probably, can be handled more intelligently here: https://github.com/6over3/exiftool/blob/main/src/index.ts#L406