Deretina.py - never worry about Retina graphics again
(or rather, never worry about non-retina graphics again)
I’ve devised a system to stop having to fiddle with retina and non-retina graphics when building iOS apps.
- Only make retina (@2x) graphics assets.
- Store them all in an “Assets” directory, added to my xcode project as a folder-reference.
- Add a “Run Script” build step that converts any and all @2x graphics to half-rez graphics for older devices.
The script can be found here.
It crawls a sub-directory of your project called “Assets”, so any @2x files in there will be shrunk effortlessly using OS X’s built in sips command line tool.
I’ve only been using this for a day or two in one project, so I’d love to hear of any issues you encounter. Or fork it on github and improve it.