Using CLI some TIFFs are identified as RAW files, though they aren't (e.g. TIFFs from Enfuse), Issue 2002

This commit is contained in:
Ingo
2014-05-07 23:05:16 +02:00
parent c3bb93bf18
commit 2868cfa4f8

View File

@@ -581,12 +581,13 @@ int processLineParams( int argc, char **argv )
continue;
}
// Load the image
ii = rtengine::InitialImage::load ( inputFile, true, &errorCode, NULL );
if (ii)
isRaw=true;
else
ii = rtengine::InitialImage::load ( inputFile , false, &errorCode, NULL );
// Load the image
isRaw = true;
Glib::ustring ext = getExtension (inputFile);
if (ext.lowercase()=="jpg" || ext.lowercase()=="jpeg" || ext.lowercase()=="tif" || ext.lowercase()=="tiff" || ext.lowercase()=="png")
isRaw = false;
ii = rtengine::InitialImage::load ( inputFile, isRaw, &errorCode, NULL );
if (!ii) {
errors++;
std::cerr << "Error loading file: "<< inputFile << std::endl;