Hi, How can I list all photos Darktable knows about, that have input profiles other than standard color matrix? I would like to get filenames of photos and corresponding input color profile names (or ICC filenames). I tried various approaches however I get always stuck on the data being somehow encoded. If someone could point me in the right place in the code I hope I should be able to work out the details. Here is what I tried so far:
a) Collect images module Input profile information is not available there. b) Side-car files (XMP) Input profile information is encoded there, but I haven't worked out how to extract it. c) Lua scripts Not suitable, see https://redmine.darktable.org/projects/darktable/wiki/ LuaUsage "The general limitation of the lua API is the lighttable view. In other word we aim at being able to do with lua everything that can be done in the lighttable, but anything that can only be done in darkroom mode is off- limit." d) Look directly inside Darktable database As per https://www.darktable.org/usermanual/ch01.html.php "Darktable keeps image information in an sqlite database for fast access. The default location of that database file is “$HOME/.config/darktable/ library.db”." I can see data inside history table (op_params) being stored as BLOB. So again I would need to know how is it encoded in there. Background: I am creating camera input profiles with ColorChecker target for specific difficult lighting situations. Since the colour checker LUT module is work in progress, I am creating such profiles manually using Argyll CMS. Unfortunately my ICC profiles are currently displayed in random order in profiles drop-down list. This makes it quickly hard to work with. I opened a new feature request which may or may not address the sort order (it's status is "Closed: invalid" but Tobias said he will have a look) - https://www.darktable.org/redmine/issues/11274 - While waiting I would like to keep tight control of the ICC profiles files. If I accidentally delete a profile in use, next time I open a photo that was using it, the profile is replaced with standard color matrix. I would like to avoid such mistakes. On the other hand I don't want to keep unused profiles in the list as it gets unwieldy. A script giving me overview of which photo is using which profile would be really helpful for this. Any pointer in the right direction would be much appreciated. Cheers, Tomas ____________________________________________________________________________ darktable user mailing list to unsubscribe send a mail to [email protected]
