I am trying to merge multiple PNG images into a single PDF file. I can do that with this command:
convert output/*.png all_plots.pdf
However, I also want to reduce the size or quality (ultimately to reduce the output file size) of the input PNG files before they get added to the PDF. I tried this command:
convert output/*.png -quality 0 all_plots.pdf
And also this
convert -quality 0 output/*.png all_plots.pdf
But it does not seem to be doing anything. How are you supposed to set the arguments so that the adjustments are applied to all input PNG files found by globbing?
For reference, there is documentation here and here and a similar question here, but I was not able to find an answer for this among them.