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 94You 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. :)
Via Jamie Pinkham.
Source: eploko
31 Notes/ Hide
-
petervidani liked this
-
petecallaway liked this
-
dansdevdiary reblogged this from mccarron
-
chatzitate liked this
-
quanganhdo liked this
-
evanwalsh liked this
-
banterability liked this
-
jmlumpkin liked this
-
antons liked this
-
jeffrock reblogged this from eploko and added:
Andrey Subbotin:
-
notmaddox liked this
-
jeffrock liked this
-
jamiepinkham liked this
-
nevyn reblogged this from eploko and added:
life saver. sudo gem install ios-png-check is
-
nevyn liked this
-
mccarron reblogged this from eploko and added:
Andrey Subbotin put together a great Ruby script for...great looking utility, I suggest
-
mccarron liked this
-
eploko posted this
