Skip to content

Instantly share code, notes, and snippets.

@kazuooooo
Created February 24, 2020 17:08
Show Gist options
  • Save kazuooooo/8a22a809f1bf164708b8558ae1709b6c to your computer and use it in GitHub Desktop.
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.
# 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