iPhone 4 @2x assets made easy
We were updating our app’s graphics for the gorgeous screen of iPhone 4 the other day and it was a pain to update all the 163 PNG files we had and not to miss a thing.
So, I’ve come up with a simple Ruby script that checks that for each @1x image you have a properly sized @2x image.
The output it gives is like:
FILES WITHOUT @1x VERSION ============================================ status-new@2x.png FILES WITHOUT @2x VERSION ============================================ Icon-Small.png logo.png message-bubble-left.png message-bubble-right.png no-photo-icon-boy-small.png no-photo-icon-girl-small.png nofriendsbg.png profile-gallery-super-star.png send-button.png share-on-network-bounds-rect.png INVALID IMAGE SIZES DETECTED FOR THE FOLLOWING FILES ================= dashboard-checkin-button-full@2x.png: SIZE IS 506 x 94, EXPECTED 596 x 94
You can check it out on GitHub at: http://github.com/eploko/ios-png-check
Hopefully it will make life easier for some of you iPhone developers out there. :)







31