Don't perform EXIF hack on BigTIFF
This commit is contained in:
@@ -2061,7 +2061,7 @@ SAMPLEFORMAT_16;16-bit floating-point
|
|||||||
SAMPLEFORMAT_32;24-bit floating-point
|
SAMPLEFORMAT_32;24-bit floating-point
|
||||||
SAMPLEFORMAT_64;32-bit floating-point
|
SAMPLEFORMAT_64;32-bit floating-point
|
||||||
SAVEDLG_AUTOSUFFIX;Automatically add a suffix if the file already exists
|
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;File format
|
||||||
SAVEDLG_FILEFORMAT_FLOAT; floating-point
|
SAVEDLG_FILEFORMAT_FLOAT; floating-point
|
||||||
SAVEDLG_FORCEFORMATOPTS;Force saving options
|
SAVEDLG_FORCEFORMATOPTS;Force saving options
|
||||||
|
@@ -1392,7 +1392,7 @@ int ImageIO::saveTIFF (
|
|||||||
|
|
||||||
bool applyExifPatch = false;
|
bool applyExifPatch = false;
|
||||||
|
|
||||||
if (exifRoot) {
|
if (exifRoot && !big) {
|
||||||
rtexif::TagDirectory* cl = (const_cast<rtexif::TagDirectory*> (exifRoot))->clone (nullptr);
|
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) -----------------
|
// ------------------ 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__
|
#if __BYTE_ORDER__==__ORDER_LITTLE_ENDIAN__
|
||||||
bool needsReverse = exifRoot && exifRoot->getOrder() == rtexif::MOTOROLA;
|
bool needsReverse = exifRoot && exifRoot->getOrder() == rtexif::MOTOROLA;
|
||||||
#else
|
#else
|
||||||
bool needsReverse = exifRoot && exifRoot->getOrder() == rtexif::INTEL;
|
bool needsReverse = exifRoot && exifRoot->getOrder() == rtexif::INTEL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (iptcdata) {
|
if (iptcdata) {
|
||||||
rtexif::Tag iptcTag(nullptr, rtexif::lookupAttrib (rtexif::ifdAttribs, "IPTCData"));
|
rtexif::Tag iptcTag(nullptr, rtexif::lookupAttrib (rtexif::ifdAttribs, "IPTCData"));
|
||||||
iptcTag.initLongArray((char*)iptcdata, iptclen);
|
iptcTag.initLongArray((char*)iptcdata, iptclen);
|
||||||
|
Reference in New Issue
Block a user