$ darktable-cli /daten/fotos/quelle/test /daten/fotos/rendered/darktable_output/
notice: output location is a directory. assuming '/daten/fotos/rendered/darktable_output//$(FILE_NAME).jpg' output pattern
no images to export, aborting
dpkg -l | grep -i darktable
ii darktable 5.2.0-1.1+87.1 amd64 virtual lighttable and darkroom for photographers
$ ls -1 /daten/fotos/quelle/test/
test.dng
test.dng.xmp
$ darktable-cli /daten/fotos/quelle/test /daten/fotos/rendered/darktable_output
notice: output location is a directory. assuming '/daten/fotos/rendered/darktable_output/$(FILE_NAME).jpg' output pattern
no images to export, aborting
Export with the GUI works, but it creates a very large file. DNG-Photo is from a cellphone.
I have tons of RAWs of DSLR too. I don’t understand why a file should not work with cli, while it works with GUI.
$ ls -1 /daten/fotos/quelle/test
test.pef
test.pef.xmp
test.pef was opened with 5.2 and modified a little bit.
$ darktable-cli /daten/fotos/quelle/test /daten/fotos/rendered/darktable_output
notice: output location is a directory. assuming '/daten/fotos/rendered/darktable_output/$(FILE_NAME).jpg' output pattern
no images to export, aborting
To be sure, I purged the test files before I copied other files with the name test to the directory
purge_non_existing_images.sh --purge
Removing the following non existent file(s):
If you’re trying to export multiple files in a folder, I usually use a loop in bash instead, more flexible.
For example, this would list all RAF files, then call darktable-cli on each, output to “exported” folder and append .jpg to the filename. You can try running this, it just prints out the darktable-cli command for you to tweak, once you think it’s good, just remove the echo and it will actually call darktable-cli.
The ${f%.*} basically extracts the filename without extension (from the RAF file).
ls *.RAF | while read f; do echo darktable-cli "$f" "exported/${f%.*}.jpg"; done
In my folder, the above command will print this (if you remove echo, it will execute these instead)
BTW, I don’t think --core quality 90 works, you need to specify the plugin with --core --conf plugins/imageio/format/jpg/quality=90 (I think I found out while trying to set TIFF format to 32-bit for my script with --core --conf plugins/imageio/format/tiff/bpp=32)
Then again, quality 98% is ridiculously high for a jpg as final output. Usual advice iirc is to use 90 maximum. If you need still better quality, perhaps a lossless format is more useful? (Tiff or png come to mind, with compression, of course).
Comparing with the DNG is a bit risky: if that is a raw file, it has less data/pixel than a jpg: raw is usually 12-14 bit/pixel, an image file starts with at least 24 bits/pixel, so about twice as much as the raw. So that 52MB raw would correspond to an uncompressed image of 90-100 MB…
Check the image size to be sure the comparison is valid, and most likely that jpg is not saved at the equivalent of 98% quality (80% or so? perhaps even less)
My bad, I saw DNG and thought about already demosaiced data … been working on passing demosaiced TIFF32 between darktable and nind-denoise too much … should get some sleep