Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#Recently switched an in-house level app with 20+ targets to universal app so we were in need to update 200+ icons,
#this is a small quick and dirty script used to resize all icons to what ios expects, checking Contents.json (solves warnings).
#WARNING USE IT AT YOUR OWN RISK!!
#Please note that this may downscale or upscale your images based on the original ones.
#Must be run at Images.xcassets level
#Requirements
# jq for JSON parsing
# imagemagick for image rescaling
for d in *.appiconset; do