I've got most of the command done already
Code: Select all
[ ! -f input.png ] && curl -L http://bellard.org/bpg/2.png --output input.png
convert \
input.png \
-background none \
\( +clone -background \#f0f -shadow 100x40 -channel A -level 0,70% +channel \) \
-background none \
+swap \
+repage \
-shave 80 \
output.png
I know I can just use anything to remove the unnecessary `output-1.png` and rename the other file, but is there a way to do this in imagemagick?
Using `-layers merge` allows the original image to seep through, which we don't want and will make the file size larger.