Created
June 12, 2024 14:48
-
-
Save Souler/59c4bd8fbe21a0b5bd08248e28708895 to your computer and use it in GitHub Desktop.
Crop maskable icons into circular
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for size in 48 72 96 128 192 384 512 1024 | |
do | |
magick "maskable_x$size.png" \( +clone -threshold 100% -fill white -draw 'circle %[fx:int(w/2)],%[fx:int(h/2)] %[fx:int(0.95*w/2)],%[fx:int(0.95*(w/2+h/2))]' \) -channel-fx '| gray=>alpha' "base_x$size.png" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment