Processing a directory now look for image format set in options (#3691)
See the updated '-c' and new '-a' help when using rawtherapee-cli.exe -h
This commit is contained in:
@@ -2365,6 +2365,27 @@ void Options::save ()
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* return true if ext is a parsed extension (retained or not)
|
||||
*/
|
||||
bool Options::is_parse_extention (Glib::ustring fname)
|
||||
{
|
||||
Glib::ustring ext = getExtension (fname).lowercase();
|
||||
|
||||
if (!ext.empty()) {
|
||||
// there is an extension to the filename
|
||||
|
||||
// look out if it has one of the listed extensions (selected or not)
|
||||
for (unsigned int i = 0; i < parseExtensions.size(); i++) {
|
||||
if (ext == parseExtensions[i]) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
* return true if fname ends with one of the retained image file extensions
|
||||
*/
|
||||
|
Reference in New Issue
Block a user