我该如何为图像格式编写 Photoshop 插件?
我有一种图像格式,但 Photoshop 不支持它。 我的任务是编写一个插件来导入或打开格式,但是那里的信息似乎很少,我能找到的信息都是关于编写过滤器的。 但是,我想导入/导出/打开,而不是过滤它。
I have an image format and Photoshop doesn't support it. I've been tasked with writing a plugin to import or open the format, but there seems to be little information out there and what information I can find is all about writing filters. However, I want to import/export/open, not filter it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我使用 Photoshop 导入滤镜的经验大约有六年了,所以对此评论持保留态度。
我只是将官方 SDK 中的导入过滤器示例代码作为样板,并添加了我自己的解码功能。 这是一项直接的工作,从开始到完成花了一周的时间。
如果我没记错的话,最糟糕的事情是:
正确设置编译器并编译示例代码(两天)
了解如何Photoshop GUI 可以工作。 当时它不是标准的 win32,而是半基于 mac 资源的东西。 我认为他们已经改变了这一点。
My experience with photoshop import filters is roughly six years old, so take this comment with a grain of (old) salt.
I just took the import filter example code from the official SDK as a boilerplate and added my own decoding function. It was a straight forward job and took a week from start to finish.
If I remember right the worst thing was:
Getting the compiler settings right and compile the example code (two days)
Learning how the Photoshop GUI works. It was not standard win32 back then but something half mac resource based. I think they've changed that though.
您需要获取 Photoshop SDK 的副本。 其中包含编写导入插件所需的所有文档和源示例。
You'll want to get a copy of the Photoshop SDK. This has all of the documentation and source examples you'll need to write an import plugin.