<div dir="auto"><div>Hi Maik,<div dir="auto"><br></div><div dir="auto">Thank you very much for your reply! It all makes sense now.</div><div dir="auto"><br></div><div dir="auto">Kind regards,</div><div dir="auto">Dmitri</div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">tor. 23. apr. 2020 19.53 skrev Maik Qualmann <<a href="mailto:metzpinguin@gmail.com">metzpinguin@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Dmitri,<br>
<br>
For your example it would be right:<br>
<br>
jpeg-recompress -quality high $INPUT $OUTPUT<br>
<br>
The peculiarity of the script is that it is assumed that a new target file <br>
($OUTPUT) is always created. Should e.g. only metadata on the original image <br>
are changed, you have to add a copy process yourself in the script. So <br>
depending on the operating system:<br>
<br>
cp $INPUT $OUTPUT<br>
<br>
Then only the $OUTPUT file can be changed using a shell command.<br>
Whether the new file then overwrites the original file or is created as a new <br>
one with a different name depends on the settings in BQM.<br>
<br>
Maik<br>
<br>
Am Donnerstag, 23. April 2020, 16:33:29 CEST schrieb Dmitri Popov:<br>
> Hello,<br>
> <br>
> Recently, I stumbled upon the User Script tool in Batch Queue Manage. Since<br>
> it's completely undocumented, I can't figure out how it works. Say I need<br>
> to run jpeg-recompress on all images in the current job. The command has<br>
> the following format:<br>
> <br>
> jpeg-recompress -quality high original.jpeg result.jpeg<br>
> <br>
> What would it look like in the User Script tool?<br>
> <br>
> Thank you,<br>
> Dmitri<br>
<br>
<br>
<br>
<br>
</blockquote></div></div></div>