6

How to add multiple additional options on qgis batch processing?

enter image description here

result is : GDAL command:

gdal_translate -of GTiff -co "COMPRESS=JPEG JPEG_QUALITY=75 PHOTOMETRIC=YCBCR TILED=YES"

it should be

gdal_translate -of GTiff -co COMPRESS=JPEG -co JPEG_QUALITY=75 -co PHOTOMETRIC=YCBCR -co TILED=YES ....

1 Answer 1

11

You use the pipe character "|" to separate your options, so for your options you would use:

COMPRESS=JPEG|JPEG_QUALITY=75|PHOTOMETRIC=YCBCR|TILED=YES

i.e

enter image description here

This is now documented:

For Batch Process: separate multiple options with a pipe character (|).

At the time this question was asked, this was not documented (the docs just contained "put parameter description here"), I worked it out by looking at the source.

4
  • Yes it s true actually I found that later on the log file when building just once instead of using the batch processing. Thanks ;)
    – ePascoal
    Apr 8, 2019 at 4:44
  • 1
    +1 point for you, -1 for whoever wrote that documentation
    – ImanolUr
    May 17, 2019 at 10:44
  • 1
    +100 points for whoever will add it as info to the dialog itself Apr 5, 2022 at 7:45
  • Pull requests welcome :)
    – user2856
    Apr 5, 2022 at 8:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.