Photoshop“保存到网络”自动化

发布于 2024-09-07 18:38:55 字数 289 浏览 2 评论 0原文

我对 Photoshop(仍然是 CS4)相当陌生,我经常收到网站设计,其中将它们分割需要相当长的时间。 有些网站的图层大小完全相同,并且彼此堆叠在一起(幻灯片之类的东西)。

我通常将这些图层移动到具有所需大小的新文档中,一次显示一个,然后“保存为网页”为 24 位透明(逐行扫描)PNG。 有时只有 5 张图像,有时则有 10 倍。我不介意为此获得报酬,但一段时间后它会变得非常无聊,我想将其自动化。

我对 Illustrator 中的 Adob​​e 特定 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

醉城メ夜风 2024-09-14 18:38:55

我这里的机器上没有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.

野鹿林 2024-09-14 18:38:55

我认为您正在寻找的是某种精灵创建插件。

如果您使用 Adob​​e 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文