質問

I have a dream script I'm looking for and wondering if anyone here as stumbled across one

Problem: Creating @2x and regular PNG files for iOS software

Edit: no need to worry about file type. iOS images should ALWAYS be 24bit PNG

In my workflow, I'll get my image all set then go through this same exact ritual every time:

  1. Save for Web & Devices
  2. Press Save and choose a filename, like "myimage@2x.png"
  3. Save for Web & Devices again
  4. Reduce image size by 50%
  5. Press Save and choose a similar filename like "myimage.png"

My dream photoshop script would 1. Ask for a filename & location: i.e. present a typical save dialog 2. I'd enter a name "myimage" 3. it would save the current document as "myimage@2x" in that location, and then save a 50% reduced image named "myimage" also in that location

Any ideas? I've poked around the photoshop scripting reference but its a bit overwhelming.

Thanks!!

役に立ちましたか?

解決

Here is an action set I created (JLRetinaPNGExport.atn) which you can find here. This action set comes with 3 actions:

  1. current layer export as .png at 100% then 50%
  2. current layer, trim transparent pixels, then export as .png at 100% then 50%
  3. merge visible and export as .png at 100% then 50%

This action set was modified from this action set. Hope this helps!

他のヒント

You could use photoshop Actions for that. You can found dozens of how-tos for that in google.

But i rather prefer to save all images just in retina with @2x and then load them all in the little and smart app called unretiner (Appstore link) to generate the lowers images.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top