



I think the correct approach is to separate out each part of the image that is completely surrounded by only transparent background, then discard the small pieces which should leave us with just the larger image?




Code: Select all
convert wrnTV0w.png -channel a -morphology open octagon:5 +channel result.pngCode: Select all
convert wrnTV0w.png \
\( +clone -alpha extract -type bilevel \
-define connected-components:area-threshold=1000 \
-define connected-components:mean-color=true \
-connected-components 4 \) \
-alpha off -compose copy_opacity -composite \
result2.png
Users browsing this forum: Google [Bot] and 12 guests