修剪分层 Photoshop 文档 (.psd) 中的透明像素
如何从分层 Photoshop 文档 (.psd) 中修剪透明像素?我还希望删除被剪贴蒙版隐藏的区域。
How can I trim transparent pixels from a layered Photoshop document (.psd)? I wish to also remove areas hidden by clipping masks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个可以修剪文档透明度并删除遮罩区域的函数。它是由 ScriptListener 为菜单项 Image > 生成的。使用显示的设置进行修剪。为了提高可读性,进行了少量代码清理。
要使用此解决方案,请打开 &激活所需的文档,然后调用脚本中的函数,如下所示:
Here is a function that will trim document transparency and remove masked areas. It is generated by ScriptListener for the menu item Image > Trim with the settings shown. Minor code cleanup for readability.
To use this solution, open & activate the intended document and then invoke the function in your script like this: