3

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?

4

1 回答 1

2

我目前正在开发一个可以做到这一点的软件(以及更多自动切片 PSD 的东西),但即使在 C++ 中它也非常慢。现在我正在研究 GPU 加速解决方案......所以如果有一个请求模式的选项,你应该这样做。

于 2010-11-21T11:53:27.813 回答