Filter for images with auto applied camera styles but no manual processing?

I’ve got a question re: filtering of images in darktable. I have version 5.0.1.

I have the auto apply camera styles script enabled, so after import all images have a camera style applied. Which is great and what I wanted!

But now it is hard for me to look for (or exclude) images that I have edited manually. In the history filter all images count as altered.

Is there a better way to search, or a way to have images that just had the camera style applied by script marked as “auto applied” for the purpose of the history search?

In tagging module enable hidden tags ( darktable user manual - tagging ) and look for tags like darktable|style|% .
I’m not aware that autoapplied styles could be distinguished from manual applied styles.

To make sure I understand, you’re looking for a way to distinguish which images that have auto applied styles have been edited further?

Yes something like that is what I am looking for.

To be very specific, it is about finding out which images have (or have not) been touched after the initial import with or without auto-applied styles or other settings.

Come to think of it, could this be done time-based? Is there a way to find images which have been modified n minutes after the initial import?

Oh I might have found a way:

I could modify the apply camera style script to delete the darktable|changed tag from the image after the style has been applied. I’ll try it sometime soon.

Any chances for negative side effects I am not seeing?

From Lua only by checking xmp file timestamps. darktable doesn’t expose anything to Lua about modification times, though maybe it could…

Any chances for negative side effects I am not seeing?

I don’t think so.

Or, you could just add another tag of your choosing to the images you edit.

So, turns out that removing the darktable|changed tag is easy but solves nothing; darktable does not use the tag when determining which images are changed or not.

I’ll go with adding my own tag then; when I have time I’ll look into a way to automate things.

I have never used the LUA autostyle, so I’m unsure what it accomplishes for you, but I extensively use auto applied presets. If you can accomplish the same results you’re getting with the autostyle LUA script by using auto applied presets instead, you should avoid the problem you’re having.

You could automate it with this, but instead of calling update_thumbnail you could call a function to apply your tag.

dt.register_event(MODULE, "darkroom-image-history-changed",
  function(event, image)
    update_thumbnail(image)
  end 
)

Thank you, that looks like just the right thing to use!

1 Like

Thank you @wpferguson - using that event works well for me. I modeled the script after your auto_snapshot script.

Do you guys want it in the scripts collection; if yes do I just open a PR?

Go ahead and open a PR.

Add a script to automatically tag manually modified images by mreiger · Pull Request #585 · darktable-org/lua-scripts · GitHub :slight_smile: