How must the syntax be to render the photos from “sourcedir” to “outputdir” with a defined jpg-quality (edited)? I would like to do this via ssh
Did you check the manual?
or even darktable-cli --help?
I don’t even know what a “jog-quality” is.
Probably a jpg-quality typo
You can flag what export quality you want (and other settings). It is all explained in the manual under the invocation section.
Yes, I read darktable user manual - darktable-cli and
Exporting images on the command line | darktable
Simply, I am unsure with the syntax, expecially with “–” and “-” or nothing, when it comes to quality.
jpeg
quality
The compression quality (5
-100
)
Can you give me a short example please or a link, where examples are?
Do I have to put
quality 90
simply anywhere in the syntax without “-”
Sure, but there is no entry for “jog-quality” … which seems to be a typo for “jpg-quality” and OP has corrected it
Sorry for the typo
You probably want to look at the section above:
--core --conf plugins/imageio/format/<FORMAT>/<OPTION>=<VALUE>
so I’d assume
--core --conf plugins/imageio/format/jpeg/quality=50
Thanks a lot. It would be helpful to see such examples in the manual.
Go do an issue in GitHub dtdocs or even better, a PR with the change.
I think you can try --core quality 90. I’m on the cell on holiday and can’t test.
no images to export, aborting
I am playing with a very simple syntax.
darktable-cli sourcedir rendereddir
sourcedir contains 1 jpg and xmp file, but I get the message there is no image, which is not true.
The user must supply an input filename and an output filename. All other parameters are optional.
The name of the input file or folder (containing images) to be exported. If you wish to process multiple images or multiple folders use the --import option instead.
I think you should post entire terminal string you are using.
$ ls -1 /daten/fotos/quelle/test/
test.jpg
test.jpg.xmp
This works:
$ darktable-cli /daten/fotos/quelle/test/test.jpg /daten/fotos/rendered/darktable_output/rendered.jpg
3.7952 [export_job] exported to `/daten/fotos/rendered/darktable_output/rendered.jpg'
This doesn’t work:
$ 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
It works without an error message, but filesize is noticeabe different than with the other syntax “–core --conf plugins/imageio/format/jpeg/quality=99”
13MB vs 18MB with my test-file with quality 99.
13MB vs 260kB with quality 10.
It looks like “-core quality X” produces the same size always.
JPG Source file has 9MB (27MP), rendered with cli: file with 100% 22MB, 99% 18MB
GUI-Export has 13MB. (quality 98)
Please don’t ask why I use jpg, I am testing.
How will it know what file format you want as the output? You need to specify it via --out-ext
.
DId you see the output?
assuming ‘/daten/fotos/rendered/darktable_output//$(FILE_NAME).jpg’ output pattern
That is mentioned in the manual too, if nothing is defined, jpg is used.
Tried this too, doesn’t help.
The problem is not the output, but the source.
Try without the / at the end of input folder