Filter by file type, on behalf of Michael Ezra; see issue #376
This commit is contained in:
@@ -310,7 +310,7 @@ void Thumbnail::generateExifDateTimeStrings () {
|
||||
if (!cfs.exifValid)
|
||||
return;
|
||||
|
||||
exifString = Glib::ustring::compose ("f/%1 %2s %3%4 %5mm", Glib::ustring(rtengine::ImageData::apertureToString(cfs.fnumber)), Glib::ustring(rtengine::ImageData::shutterToString(cfs.shutter)), M("QINFO_ISO"), cfs.iso, cfs.focalLen);
|
||||
exifString = Glib::ustring::compose ("f/%1 %2s %3%4 %5mm", Glib::ustring(rtengine::ImageData::apertureToString(cfs.fnumber)), Glib::ustring(rtengine::ImageData::shutterToString(cfs.shutter)), M("QINFO_ISO"), cfs.iso, cfs.focalLen);
|
||||
|
||||
std::string dateFormat = options.dateFormat;
|
||||
std::ostringstream ostr;
|
||||
@@ -384,6 +384,12 @@ void Thumbnail::infoFromImage (const Glib::ustring& fname, rtengine::RawMetaData
|
||||
cfs.lens = "Unknown";
|
||||
cfs.camera = "Unknown";
|
||||
}
|
||||
// get image filetype
|
||||
std::string::size_type idx;
|
||||
idx = fname.rfind('.');
|
||||
if(idx != std::string::npos){cfs.filetype = fname.substr(idx+1);}
|
||||
else {cfs.filetype="";}
|
||||
|
||||
delete idata;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user