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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user