How to process images in a folder reference?
How to process images in a folder reference?
- Subject: How to process images in a folder reference?
- From: Dan Treiman <email@hidden>
- Date: Thu, 27 Aug 2009 23:55:02 -0500
I've noticed that in an iPhone app, when you have a .png image in a
copy files build phase, Xcode copies it according to CopyPngFile,
which does some processing using pngcrush to optimize the image.
In the app I'm building, I have many .png images, organized in
directories. I'd like to preserve my directory structure in the
resources directory, so I've used folder references to copy my
images. But then I see that the images inside the folders aren't
getting optimized - they are just getting copied. Is there a way to
have XCode optimize the images, and still preserve the directory
structure?
I've thought about:
1. Make a "Copy Files" build phase for each directory. ( not very
practical in my case )
2. Write a shell script build phase to process the images.
Can anyone offer any advice on this?
thanks!
-Dan Treiman
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden