开发者

Photoshop "Save to Web" automation

开发者 https://www.devze.com 2023-01-04 23:01 出处:网络
I\'m fairly new to Photoshop (Still CS4) and I often get des开发者_StackOverflow中文版igns for websites where slicing them up takes a fairly decent amount of time.

I'm fairly new to Photoshop (Still CS4) and I often get des开发者_StackOverflow中文版igns for websites where slicing them up takes a fairly decent amount of time. Some sites have layers that are all going to be the same exact size, and they are stacked on top of each other (Slideshows, that type of thing).

I usually move these layers to a new document with the size I need, display one at a time, and "Save for web" as 24-bit transparent (non-interlaced) PNGs. Sometimes its only 5 images, other times its 10 times that. I don't mind getting paid to do this, but after a while it gets incredibly boring and I would like to automate it.

I have some basic JS experience with Adobe specific APIs from Illustrator, but no experience with Photoshop.


I don't have PS on my machine here, but does the script under File -> Scripts -> Layer Comps to Files help? You can create different layer comps and then files from them. I don't know about output formats though.

Edit: You can also make a copy of the Layer Comps to Files script and change it to call Save for Web. See the reference book.


I think what you are looking for is a sprite creation plugin of some sort.

If you were using Adobe Fireworks instead of Photoshop then that would allow you to set link, active, rollover states which would save all to a separate layers and allow you to design them separately but I'm not sure that's what you want. I could do with that capability myself.

I had a look and found:

http://gmurphey.com/blog/2011/07/07/photoshop-plugin-simple-sprites

http://www.garagegames.com/community/blogs/view/11527

0

精彩评论

暂无评论...
验证码 换一张
取 消