Logo

Jeff Rock

  • Random
  • Archive
  • RSS
  • Ask me anything

iPhone 4 @2x assets made easy

Andrey Subbotin:

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. :)

Via Jamie Pinkham.

Source: eploko

  • 1 year ago > eploko
  • 31
  • Permalink
  • Share
    Tweet

31 Notes/ Hide

  1. petervidani liked this
  2. petecallaway liked this
  3. dansdevdiary reblogged this from mccarron
  4. chatzitate liked this
  5. quanganhdo liked this
  6. evanwalsh liked this
  7. banterability liked this
  8. jmlumpkin liked this
  9. antons liked this
  10. jeffrock reblogged this from eploko and added:
    Andrey Subbotin:
  11. notmaddox liked this
  12. jeffrock liked this
  13. jamiepinkham liked this
  14. nevyn reblogged this from eploko and added:
    life saver. sudo gem install ios-png-check is
  15. nevyn liked this
  16. mccarron reblogged this from eploko and added:
    Andrey Subbotin put together a great Ruby script for...great looking utility, I suggest
  17. mccarron liked this
  18. eploko posted this
← Previous • Next →

About

Co-founder/Creative Director of Mobelux.

I like good beer, hate Zapfino and love hanging out with Emily & Franklin when I'm not busy making awesome stuff.

Pages

  • Dashboard Radio

Me, Elsewhere

  • jeffrock on Dribbble
  • @jeff_rock on Twitter
  • Google
  • jeffrock on github
  • RSS
  • Random
  • Archive
  • Ask me anything
  • Mobile

© 2008-2011 Jeff Rock. All rights reserved. Effector Theme by Carlo Franco.

Powered by Tumblr