I am trying to split and image into its 4 quadrants and pad them out to the original size in a transparent background in the proper corners.
input:
This works fine:
Code: Select all
convert -respect-parentheses -size 256x256 xc:none \
null: \( lena.jpg -crop 50%x50% \) -layers Composite \
lena_quads1_%d.png
Code: Select all
convert lena.jpg -crop 50%x50% miff:- |\
convert -size 256x256 xc:none \
null: - -layers Composite \
lena_quads2_%d.png
But this fails using mpr: format. Only the last one is placed in the larger transparent area in the correct corner.
Code: Select all
convert lena.jpg -crop 50%x50% -write mpr:quads +delete \
-size 256x256 xc:none \
null: mpr:quads -layers Composite \
lena_quads3_%d.png