以编程方式从图像文件和/或 PSD 中提取图案
我经常需要从 PSD 中提取图案来制作与 XHTML 和 CSS 一起使用的图像。
我经常在 Photoshop 中做出猜测,然后不得不在几次之后纠正我的猜测。看起来很麻烦。
有没有...
- 使用选择器工具从 Photoshop 文件中提取图案的技术?
- 也许有一个 Photoshop 插件可以做到这
- 一点 软件可以解析图案图像,并给我返回制作平铺图案的最低限度?
除了我收到的每个 PSD 之外,我是否还应该索取一份图案副本?
处于我这个位置的其他人以前是如何解决这个问题的?
感兴趣的是,我如何/将如何编程这样的东西(我可以将 PHP 与 GD 库一起使用)?难道不值得我花时间吗?我是否会从左到右循环遍历像素,然后识别图像颜色和彼此远离的位置,并不断检查新像素是否开始与旧图案匹配?
I often have to extract a pattern from a PSD to make an image to be used with XHTML and CSS.
I have often just made a guess in Photoshop, and then had to correct my guesses a few time after. It seems cumbersome.
Is there...
- Techniques for extracting a pattern from a Photoshop file with the selector tool?
- A Photoshop plugin perhaps that can do this
- Software that can parse a pattern image, and give me back the bare minimum to make a tiled pattern?
Should I just be requesting a copy of the pattern in addition to each PSD I receieve?
How have other people in my position tackled this problem before?
In matter of interest, how could / would I program something like this (I could use PHP with GD library)? Is it not worth my time? Would I loop through pixels left to right, and then identify image colours, and positions away from each other, and constantly check if new pixels are beginning to match an older pattern?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我目前正在开发一个软件来执行此操作(以及其他一些自动 PSD 切片的功能),但即使在 C++ 中,它也非常慢。现在我正在研究 GPU 加速解决方案......
因此,如果有请求模式的选项,您应该这样做。
I'm currently working on a software that does this (and a couple more things to automate slicing of PSDs), but it's very slow even in C++. Right now i'm looking into GPU accelerated solution...
So if there's an option for requesting pattern you should just do that.