I'm trying to merge every pair of images from a folder and combine that result into a PDF file with imagemagick and parallelize the process with GNU Parallel
.
parallel -N2 convert \( {1} -rotate 30 \) {2} +append miff:- ::: *jpeg | convert - out.pdf
The problem is that I need to rotate the first argument and an error occurs.
Error: /bin/sh: -c: line 0: syntax error near unexpected token `01.jpeg'
/bin/sh: -c: line 0: `convert ( 01.jpeg -rotate 30 ) 02.jpeg +append miff:-'
...
How can I process one of the arguments GNU parallel is receiving?