Remove outdated comment
Issue #5787 in the Exiv2 branch is handled by commit 522f6f4
.
This commit is contained in:
@@ -1152,23 +1152,6 @@ int ImageIO::saveTIFF (const Glib::ustring &fname, int bps, bool isFloat, bool u
|
||||
TIFFSetField (out, TIFFTAG_COMPRESSION, uncompressed ? COMPRESSION_NONE : COMPRESSION_ADOBE_DEFLATE);
|
||||
TIFFSetField (out, TIFFTAG_SAMPLEFORMAT, (bps == 16 || bps == 32) && isFloat ? SAMPLEFORMAT_IEEEFP : SAMPLEFORMAT_UINT);
|
||||
|
||||
/*
|
||||
|
||||
TODO: Re-apply fix from #5787
|
||||
|
||||
[out]()
|
||||
{
|
||||
const std::vector<rtexif::Tag*> default_tags = rtexif::ExifManager::getDefaultTIFFTags(nullptr);
|
||||
|
||||
TIFFSetField (out, TIFFTAG_XRESOLUTION, default_tags[2]->toDouble());
|
||||
TIFFSetField (out, TIFFTAG_YRESOLUTION, default_tags[3]->toDouble());
|
||||
TIFFSetField (out, TIFFTAG_RESOLUTIONUNIT, default_tags[4]->toInt());
|
||||
|
||||
for (auto default_tag : default_tags) {
|
||||
delete default_tag;
|
||||
}
|
||||
}();*/
|
||||
|
||||
// somehow Exiv2 (tested with 0.27.3) doesn't seem to be able to update
|
||||
// XResolution and YResolution, so we do it ourselves here....
|
||||
constexpr float default_resolution = 300.f;
|
||||
|
Reference in New Issue
Block a user