I’m looking for a solution that can save me from maintaining two versions of the same image, one for Retina displays (aka @2x), one another for non-Retina displays. My goal is to maintain the “2x” images only, and have some ‘magic tool’ resize all of them with a single click or even better upon building in XCode. Like “set it and forget it”.
Can you help me? Thanks in advance.
If you just want to downscale them, you can have Xcode automatically generate all non-retina images during the build process. This example script uses “sips” because that is preinstalled on Macs.
The Script
Automatic Execution
Notes
Remember to still add your 1x images to the Xcode project. Depending on your needs you might also want to:
ImageMagick comes with a “compare” command if you want to check the downsampled versions.