MicroExif: search for the TIFF signature

This commit is contained in:
Mirco Miranda
2025-03-03 09:17:56 +01:00
parent 7742537f8c
commit 25cc8bc262
3 changed files with 25 additions and 8 deletions

View File

@@ -953,7 +953,7 @@ bool HEIFHandler::ensureDecoder()
if (isXmp) {
m_current_image.setText(QStringLiteral(META_KEY_XMP_ADOBE), QString::fromUtf8(ba));
} else if (isExif) {
auto exif = MicroExif::fromByteArray(ba.mid(4));
auto exif = MicroExif::fromByteArray(ba, true);
if (!exif.isEmpty()) {
exif.updateImageResolution(m_current_image);
exif.updateImageMetadata(m_current_image);