I am trying to find an alternative to using "-channel A -morphology dilate octagon:61" because it takes 1 minute 59 seconds to complete. I have tried using "bordercolor none -border 60x60 -background White -alpha background -channel A -blur 60x10 -level 0,0% -threshold 0" but the shape doesn't evenly size the surrounding pixels like the morphology functionality.
I should step back and explain what I am doing first. I am simulating the functional purpose of Photoshop's expand visible pixels selection and smooth it by a radius of 30. I have been able to mirror the effect almost identically with the below commands:
Code: Select all
convert a.png -fill black +opaque transparent b.png
convert b.png -channel A -morphology dilate octagon:61 c.png
convert c.png -fill black +opaque transparent d.png
convert d.png -blur 40x20 +channel e.png
convert e.png -channel A -threshold 50% f.png
I am using ImageMagick 7.0.7-3 Q16 x86_64 2017-09-18 in Term2 on OSX El Capitan.