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