# Eport all photoshop layers as PNG

**URL:** https://forum.kirupa.com/t/eport-all-photoshop-layers-as-png/183051
**Category:** open source
**Created:** [March 23, 2006, 12:25pm UTC](https://forum.kirupa.com/t/eport-all-photoshop-layers-as-png/183051 "2006-03-23T12:25:45Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![thatblokemike](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@thatblokemike](https://forum.kirupa.com/u/thatblokemike)
#### Post date: [March 23, 2006, 12:25pm UTC](https://forum.kirupa.com/t/eport-all-photoshop-layers-as-png/183051/1 "2006-03-23T12:25:45Z")

</div>

Hi all, I had been getting into scripting for photoshop and have created something thats quite usefull for flash users so I thought id post it here

[http://www.thatblokemike.com/blog/index.php?mode=viewid&post\_id=48](http://www.thatblokemike.com/blog/index.php?mode=viewid&post_id=48)

Is a link to my blog article that explains it fully and offers the download. But basically it takes any PSD, and exports each layer as a cropped to size PNG.

FEEDBACK PLEASE… I want this to be ongoing and create the perfect scipt so feedback from “peeps who use it only” would be appreciated.

NOTE TO “NOT JUST FOR WEB” - FLASH USERS

I have also done one that doesnt crop that keep layouts in tact when you import into flash, email me if you want it.

---

<div class="post-metadata">

### Author: ![Zaid\_W1red](https://avatars.discourse-cdn.com/v4/letter/z/cab0a1/32.png) [@Zaid\_W1red](https://forum.kirupa.com/u/Zaid_W1red)
#### Post date: [March 23, 2006, 12:42pm UTC](https://forum.kirupa.com/t/eport-all-photoshop-layers-as-png/183051/2 "2006-03-23T12:42:27Z")

</div>

you are a god amongst men!

This features been built into after effects and DVD authoring apps for years …and now finally FLASH WOOOOOOT!!!

:red::red::red::red::red::red::red::red::red::red::red::red::red::red::red::red::red::red::red::red::red::red::red::red::red::red::red::red:

---

<div class="post-metadata">

### Author: ![Zaid\_W1red](https://avatars.discourse-cdn.com/v4/letter/z/cab0a1/32.png) [@Zaid\_W1red](https://forum.kirupa.com/u/Zaid_W1red)
#### Post date: [March 23, 2006, 1:06pm UTC](https://forum.kirupa.com/t/eport-all-photoshop-layers-as-png/183051/3 "2006-03-23T13:06:05Z")

</div>

Feedback:

Well, it works man! Ill updtae my feedback as I use it as part of my workflow, only features I maybe liek to see would be the option to use 8bit OR 24 bit png output and some dithering options for optomising the transparencies on gradients etc!

---

<div class="post-metadata">

### Author: ![hovavo](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/hovavo/32/2263_2.png) [@hovavo](https://forum.kirupa.com/u/hovavo)
#### Post date: [March 25, 2006, 11:54pm UTC](https://forum.kirupa.com/t/eport-all-photoshop-layers-as-png/183051/4 "2006-03-25T23:54:38Z")

</div>

Very very nice indeed.

Here’s a thought - maybe there’s a way to output the x and y offset for each png? (perhaps within the png’s name?)

for example: a cropped png that should be layed-out in flash at x50 X y100 would get named - ‘myPng2\_x50\_y100.png’

this can make laying out in flash much faster 🙂

---

<div class="post-metadata">

### Author: ![thatblokemike](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@thatblokemike](https://forum.kirupa.com/u/thatblokemike)
#### Post date: [March 26, 2006, 8:44pm UTC](https://forum.kirupa.com/t/eport-all-photoshop-layers-as-png/183051/5 "2006-03-26T20:44:47Z")

</div>

thanks for the feedback… im making this a long term project to perfect it and possibly even make it do the whole job.

spent the last 3 days trying to learn applescript to do the whole job, so who knows maybe in a year or so…hehe
