These two scripts can help when building assets for iMessage sticker packs.
- Both scripts worked at the time I authored them, for my very specific needs (taking 1024x1024 PNG original art files, and resizing them on my MacBook).
- Both scripts use
convert
which is installed as part of ImageMagik. https://apple.stackexchange.com/questions/335635/where-is-the-convert-command-in-macos - The AppStore requirements change frequently (as new devices are launched) and I've not updated these scripts in a very long time
Generates the icons required for the App Store
build_icons.sh
should be run with a single parameter, which is the path to a 1024 x 1024 sized PNG file. It will generate the various icon sizes that the Apple Store wants.
Generates resized sticker assets.
resize.sh
assumes that it's being run in a folder that has a subfolder, called 1024. Within the 1024
folder it expects to find 1024x1024 PNG files. It will then create 2 additional subfolders, filled with resized images.
Copyright 2020 Martin Peck
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.