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

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