Author: post
Date: 2012-01-15 15:04:32 +0100 (Sun, 15 Jan 2012)
New Revision: 4100
Modified:
trunk/librawstudio/rs-exif.cc
Log:
Use a more generic method to remove thumbnails from EXIF data.
Modified: trunk/librawstudio/rs-exif.cc
===================================================================
--- trunk/librawstudio/rs-exif.cc 2012-01-15 13:46:09 UTC (rev 4099)
+++ trunk/librawstudio/rs-exif.cc 2012-01-15 14:04:32 UTC (rev 4100)
@@ -191,7 +191,13 @@
/* Set new metadata on output image and save */
if (type != RS_EXIF_FILE_TYPE_PNG)
- image->setExifData(*data);
+ {
+ Exiv2::ExifThumb exifThumb(*data);
+ std::string thumbExt = exifThumb.extension();
+ if (!thumbExt.empty())
+ exifThumb.erase();
+ image->setExifData(*data);
+ }
image->setIptcData(iptc_data);
image->writeMetadata();
}
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit