I have another question about using a single command for multiple operations:
I want to crop an image into tiles, then resize that image, then crop the result again. Right now I have this code:
Code: Select all
convert -monitor ../output.jpg \
-write mpr:output \
\( mpr:output -crop 256x256 -set filename:tile "%[fx:page.x/256]_%[fx:page.y/256]" output_files/14/%[filename:tile].jpg \) \
\( mpr:output -resize 50% -write mpr:output \) \
\( mpr:output -crop 256x256 -set filename:tile "%[fx:page.x/256]_%[fx:page.y/256]" output_files/13/%[filename:tile].jpg \)
Code: Select all
convert: unable to open image `output_files/14/%[filename:tile].jpg': @ error/blob.c/OpenBlob/2587.
convert: unable to open image `output_files/13/%[filename:tile].jpg': @ error/blob.c/OpenBlob/2587.
convert: unbalanced parenthesis `)' @ error/convert.c/ConvertImageCommand/3007.
Also, there are three opening and three closing brackets, so how can they be unbalanced?
Kind regards,
Benjamin