Photoshop 图像的命令行操作
有没有可以从命令行编辑 Photoshop 文件的工具?
我想向我们的自动化构建流程 (MS Build) 添加步骤,该流程采用我们的艺术家制作的原始 PhotoShop 文件并生成 .png 文件;我正在研究很少的操作,例如 Photoshop-to-png、调整大小以及可能的显示/隐藏图层。我没有很幸运地找到可以用于此目的的工具。
如果可以使用 Photoshop 本身或 Photoshop 实用程序编写此脚本,那就太棒了。
Are there any tools for editing PhotoShop files from a command line?
I would like to add steps to our automated build process (MS Build) that takes original PhotoShop files that our artists make and produce .png files; I'm looking at a very few operations like photoshop-to-png, resize and possibly showing/hiding layers. I haven't had a lot of luck finding a tool I can use for this.
If it is possible to script this with Photoshop itself, or a Photoshop utility, that'd be awesome.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您的情况有几个选项:
You've got a few options in your case:
我知道您希望使用 Photoshop,但一个非 Photoshop 选项是名为 Image Magick 的开源工具。它有一个非常灵活的命令行工具。
http://www.imagemagick.org/
I know that you are looking to use Photoshop, but one non-photoshop option is an open source tool called Image Magick. It has a command line tool that is extremely flexible.
http://www.imagemagick.org/
ImageMagick,GraphicsMagick (前者的一个分支;对于前者,您将使用
convert
CLI,对于后者,您将调用gm转换
),nConvert,Krita CLI,可能还有一个 Gimp CLI 或 GMIC——这些都可以实现这一点。所有这些都将接受 Photoshop 文件作为输入,并以虚拟方式(如果不是实际上)输出整个现有图像格式(包括 Photoshop)。
ImageMagick, GraphicsMagick (a fork of the former; for the former you would use the
convert
CLI, for the latter you would invokegm convert
), nConvert, Krita CLI, and probably a Gimp CLI, or GMIC--these can all accomplish this.All will accept a Photoshop file as input, and output virtually (if not actually) the entire range of existing image formats (including Photoshop).