Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extracting images from PSD for use in iOS app [closed]

I'm not sure if this is the best forum for this, because it's not a programming question per se, but here goes.

I am the developer for an iOS application, and we contracted the design out to a third-party. They delivered to us a massive PhotoShop file with all of the the individual pieces of artwork done on individual layers, at double resolution. To get the artwork into XCode, my workflow is as follows:

  1. Show only the layers containing a particular unit of artwork
  2. Select all
  3. Copy Merged
  4. Create New image (fortunately, the dimensions are taken care of automatically)
  5. Paste
  6. Deselect pasted layer and delete Background, to preserve transparency
  7. Save image as x.psd
  8. Save copy as [email protected]
  9. Set image size to 50% of original dimensions
  10. Save copy as x.png
  11. Discard changes

This app is pretty large, so it's quite tedious to do this process for every little image. I'm not very Photoshop savvy, so I'm wondering if there is a better way. It seems to me that it should be easy enough to combine steps 3-11 into one macro or script or something. The only thing that changes in each iteration over these steps is the output name. Any suggestions?

like image 412
acjay Avatar asked Sep 16 '11 21:09

acjay


1 Answers

Normal workflow is exactly as you described. You can write a Photoshop script to do the layer exporting and Apple provides an Automator tool that will allow you to resize those graphics from 2x down 50%. Great tutorial here. This can help get your graphics to scale quickly.

There are solutions to automate what your trying to accomplish. This video tutorial allows you to take your PSD or PNG and port it into an Xcode with all of the layers properly placed in a view for you, create view controllers, and segues.

Disclaimer - I am associated with the JUMPSTART Platform as mentioned in the video.

like image 82
Rob Avatar answered Sep 21 '22 11:09

Rob