Don't perform EXIF hack on BigTIFF

This commit is contained in:
Flössie
2023-03-03 08:57:08 +01:00
parent 8f6d4f31c5
commit 8587fe068d
2 changed files with 5 additions and 4 deletions

View File

@@ -2061,7 +2061,7 @@ SAMPLEFORMAT_16;16-bit floating-point
SAMPLEFORMAT_32;24-bit floating-point
SAMPLEFORMAT_64;32-bit floating-point
SAVEDLG_AUTOSUFFIX;Automatically add a suffix if the file already exists
SAVEDLG_BIGTIFF;BigTIFF
SAVEDLG_BIGTIFF;BigTIFF (no metadata support)
SAVEDLG_FILEFORMAT;File format
SAVEDLG_FILEFORMAT_FLOAT; floating-point
SAVEDLG_FORCEFORMATOPTS;Force saving options

View File

@@ -1392,7 +1392,7 @@ int ImageIO::saveTIFF (
bool applyExifPatch = false;
if (exifRoot) {
if (exifRoot && !big) {
rtexif::TagDirectory* cl = (const_cast<rtexif::TagDirectory*> (exifRoot))->clone (nullptr);
// ------------------ remove some unknown top level tags which produce warnings when opening a tiff (might be useless) -----------------
@@ -1475,10 +1475,11 @@ int ImageIO::saveTIFF (
}
#if __BYTE_ORDER__==__ORDER_LITTLE_ENDIAN__
bool needsReverse = exifRoot && exifRoot->getOrder() == rtexif::MOTOROLA;
bool needsReverse = exifRoot && exifRoot->getOrder() == rtexif::MOTOROLA;
#else
bool needsReverse = exifRoot && exifRoot->getOrder() == rtexif::INTEL;
bool needsReverse = exifRoot && exifRoot->getOrder() == rtexif::INTEL;
#endif
if (iptcdata) {
rtexif::Tag iptcTag(nullptr, rtexif::lookupAttrib (rtexif::ifdAttribs, "IPTCData"));
iptcTag.initLongArray((char*)iptcdata, iptclen);