Small python script to rename iOS-graphics to fit in Android

Posted by: on Mar 6, 2016 | No Comments

Wrote a small little script when the designers only give me files that are made for iOS with the silly name ending such as @3x.png. According to the scaling guidelines in iOS and Android they should fit pretty nicely without demanding that the designer create new graphics (which they will most likely complain and not do). @3x goes into xxhdpi, @2x goes into xhdpi and @1x goes into mdpi.

Apparently code tags in WordPress doesn’t include spaces. So it’s available on GitHub gists here: