Created
February 24, 2020 17:08
-
-
Save kazuooooo/8a22a809f1bf164708b8558ae1709b6c to your computer and use it in GitHub Desktop.
Export ios app icons by ffmpeg scale command. It doesn't add alpha channel to png format image.
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
# Export ios app icons by ffmpeg scale command | |
# usage: sh export_ios_icons.sh {path_to_your_img} | |
# example: sh export_ios_icons.sh ./app_icon.png | |
# sizes of images | |
# you can get other size images by editing thisarray | |
size=(20 40 60 29 58 87 80 120 180 76 152 167 1024) | |
for i in "${size[@]}" | |
do | |
: | |
ffmpeg -i $1 -vf scale=$i:$i output_$ix$i.png | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment