Photoshop“保存到网络”自动化
我对 Photoshop(仍然是 CS4)相当陌生,我经常收到网站设计,其中将它们分割需要相当长的时间。 有些网站的图层大小完全相同,并且彼此堆叠在一起(幻灯片之类的东西)。
我通常将这些图层移动到具有所需大小的新文档中,一次显示一个,然后“保存为网页”为 24 位透明(逐行扫描)PNG。 有时只有 5 张图像,有时则有 10 倍。我不介意为此获得报酬,但一段时间后它会变得非常无聊,我想将其自动化。
我对 Illustrator 中的 Adobe 特定 API 有一些基本的 JS 经验,但没有 Photoshop 的经验。
I'm fairly new to Photoshop (Still CS4) and I often get designs 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我这里的机器上没有PS,但是文件->下的脚本有吗?脚本->图层组合到文件有帮助吗?
您可以创建不同的图层复合,然后从中创建文件。但我不知道输出格式。
编辑:您还可以复制“Layer Comps to Files”脚本并将其更改为调用“Save for Web”。
请参阅参考书。
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.
我认为您正在寻找的是某种精灵创建插件。
如果您使用 Adobe Fireworks 而不是 Photoshop,那么您可以设置链接、活动、翻转状态,这些状态会将所有内容保存到单独的图层中,并允许您单独设计它们,但我不确定这是否是您想要的。我自己也可以利用这种能力。
我看了一下,发现:
http://gmurphey.com/ blog/2011/07/07/photoshop-plugin-simple-sprites
http: //www.garagegames.com/community/blogs/view/11527
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