Adding support for jpeg and tiff file extensions (on behalf of sankeytms) see issue 1215.

For existing RT installations - add 'jpeg' in Preferences/FileBrowser tab, Parsed extensions.
This commit is contained in:
michael
2012-07-05 07:31:30 -04:00
parent 02c12d5259
commit 48a56db27e
6 changed files with 16 additions and 12 deletions

View File

@@ -57,7 +57,7 @@ ImageData::ImageData (Glib::ustring fname, RawMetaDataLocation* ri) {
extractInfo ();
}
}
else if (dotpos<fname.size()-3 && !fname.casefold().compare (dotpos, 4, ".jpg")) {
else if ((dotpos<fname.size()-3 && !fname.casefold().compare (dotpos, 4, ".jpg")) || (dotpos<fname.size()-4 && !fname.casefold().compare (dotpos, 5, ".jpeg"))) {
FILE* f = safe_g_fopen (fname, "rb");
if (f) {
root = rtexif::ExifManager::parseJPEG (f);