-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Batch process from command line #2008
Comments
Some of documentation (e.g. https://www.darktable.org/usermanual/en/overview_chapter.html#darktable_cli_commandline_parameters) implies that source folder can be a directory. So one could process a bunch of files by grouping them into a separate folder. I tried this with darktable-cli 2.4.4 and it fails with program error:
|
This issue did not get any activity in the past 30 days and will be closed in 7 days if no update occurs. Please check if the master branch has fixed it since then. |
this usecase works perfectly well, here's how you should use dt in your case: darktable-cli "input_dir" "xmp_file" 'output_dir/$(FILE_NAME).jpg' and it just Works (tm) :) tested and it works quite well in darktable 3.2.1 as well as 3.0.2 (and current master) |
@johnny-bit Thanks! However in any case at least it should not fail with a segmentation fault. |
It should have been |
this allow `darktable-cli` to process multiple dirs or selected files from directory via `--import` option (which can't be used in conjunction with normal input file param this essentially fixes darktable-org#2008 for it covers main requirement - multiple inputs
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
I have to process a folder with a huge amount of image and apply a given XMP to all of them. Currently I need create a for loop and call darktable-cli for every image separately.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Or give an options for darktable to be run as a daemon, where we can send the input and it will return the output. While a for loop will still be necessary, there will be a significant performance gain because darktable won't need to be reloaded on every iteration.
This will be even more efficient when working with servers.
Additional context
Add any other context or screenshots about the feature request here.
I'm planning to use this as a backend of a photo-sharing platform where we upload over 1 million photos every and applying instagram-like filters on the fly is one of the core functionalities I'm looking to provide.
The text was updated successfully, but these errors were encountered: