Rewritten to Windows format:
Code: Select all
magick in.png ^
( +clone -crop 1x1+0+0 +repage -alpha on -channel a -evaluate set 99% +channel ) ^
-alpha on -channel rgba -geometry +0+0 -compose copy -composite out.png
Code: Select all
magick in.png ^
( +clone -crop 1x1+0+0 +repage -alpha on -channel a -evaluate set 99% +channel ) ^
-alpha on -channel rgba -geometry +0+0 -compose copy -composite out.png