[IM7 bug?] `-background transparent -flatten` clears whole image
Posted: 2016-09-09T03:06:17-07:00
Here I crop an image beyond the original geometry, then flatten to preserve the new geometry created by the crop, and then add a border:
So far so good.
But now I'd like to use Transparent instead of White as the background color for the extra area that was added by the crop. So I set the background option, but this causes the flatten operation to clear the entire image:
Is this a bug?
I'm relatively sure it didn't happen in IM6.
How else can I get it to do what I want? I'm starting to wonder if `-flatten` is the correct/best way to preserve the extended crop geometry.
--------------
Version: ImageMagick 7.0.3-0 Q32 x86_64 2016-09-07
Code: Select all
magick rose: -crop 50x50+30+20! -flatten -bordercolor black -border 5x5 b.png
So far so good.
But now I'd like to use Transparent instead of White as the background color for the extra area that was added by the crop. So I set the background option, but this causes the flatten operation to clear the entire image:
Code: Select all
magick rose: -crop 50x50+30+20! -background transparent -flatten -bordercolor black -border 5x5 b.png
Is this a bug?
I'm relatively sure it didn't happen in IM6.
How else can I get it to do what I want? I'm starting to wonder if `-flatten` is the correct/best way to preserve the extended crop geometry.
--------------
Version: ImageMagick 7.0.3-0 Q32 x86_64 2016-09-07