在 Photoshop 之外使用 Photoshop 图像处理器脚本
有没有办法在 Photoshop 之外利用 Photoshop 的图像处理器脚本。如果我可以在处理大量图像时继续使用 Photoshop,最好将其作为后台进程。
抱歉,如果这不是发布此内容的正确位置。提前致谢。
is there a way to utilize Photoshop's Image Processor Script outside photoshop. Preferrably as a background process that way if I can keep working in Photoshop while I am processing tons of images.
Sorry if this is not the right place to post this. Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
Photoshop 无法做到这一点。您可以使用命令行软件(无 GUI),例如 ImageMagick。
下面是 bash 中的一个示例,展示了如何将文件夹中的所有 .tga 大小调整为 64x96 px 并转换为 .png 格式:
优点?
Photoshop can't do that. You can use command line software(no GUI) like ImageMagick.
Here's an example in bash which shows how to resize all the .tga in folder to 64x96 px and convert to .png format:
Advantages ?
不可以,Photoshop 必须打开才能使用其图像处理器。这就是为什么如果您想为每个像素的蓝色值添加 50(使图片更蓝),您不想在 Photoshop 中执行此操作。您可能希望用 Java 或其他语言循环遍历像素数组。
在 Photoshop 中,您必须编写脚本来选择一个像素,然后编辑它的颜色,取消选择该像素,对其旁边的像素进行新的选择,然后再次开始循环。这将是一个非常进程密集型的过程,并且一直使用 GUI。
Nope, Photoshop has to be open to use it's image processor. This is why if you wanted to add 50 to each pixels blue value (making the picture more blue) you would not want to do this in photoshop. You would want to loop through the array of pixels in Java or some other language.
In photoshop you would have to write the script to make a selection of one pixel, then edit it's color, deselect that pixel, make a new selection to the pixel next to it and then start the loop over again. It would be very process intensive and utilized the GUI the whole while.
您可以借助 Adobe Bridge 执行批量操作。
为此,您需要在 Photoshop 中创建一个操作,然后您可以借助 Adobe Bridge 对批量图像执行该操作,例如添加水印或应用滤镜。
友情提醒,在操作完成之前您不能使用您的计算机。
You can do bulk actions with the help of Adobe Bridge.
For that you need to create an Action in Photoshop after that you can do that action on bulk images with the help of Adobe Bridge for example Doing watermark or applying filters.
friendly reminder is you cannot use your computer till action completed.
如果您坚持使用 Photoshop,则可以使用“Photoshop 服务器”。您将拥有另一台运行 Photoshop 的计算机。您将使用 Photoshop Connect SDK http://www.adobe.com/devnet/photoshop /sdk.html 在本地网络上。
然后就可以通过TCP协议执行脚本了。正如你所说......图像处理器是脚本。脚本完成后,Photoshop 返回值。因此,如果您愿意,您可以请求图像路径或其他任何内容。
If you insist on Photoshop, you can use "Photoshop server". You would have another machine with running Photoshop. And you would use Photoshop Connect SDK http://www.adobe.com/devnet/photoshop/sdk.html on local network.
Then you can execute script via TCP protocol. And as you said... Image processor is script. When script is done, Photoshop returns value back. So you can make request for image paths or anything else if you want.