[Resolved] possible bug mpr IM 6.9.4.9 Mac OSX
Posted: 2016-06-13T18:45:27-07:00
I am not sure if this is a bug.
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:
as does this:
But this fails using mpr: format. Only the last one is placed in the larger transparent area in the correct corner.
Seems like it only gets the offsets from the last layer of the mpr:quads. Is this the way mpr works or is this a bug?
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