开发者

Image created programmatically? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.

Closed 9 years ago.

Improve this question

This is a beautiful image. I'm wondering how it can 开发者_如何学Pythonbe generated programmatically with an image-processing library like imagemagick or gd?

http://robertbasic.com/img/sign-letters.gif

Image created programmatically? [closed]

My general idea is that the frame itself could be defined separately, but is there way to fill that frame with letters in the same way they're doing it here but programmatically?

question rephrased for clarity based on answers


CSS has nothing to do with image-generation, just presentation of DOM elements--if you want to create it in an HTML/DOM window, you could do such, but if you're looking to actually generate an image via PHP, ImageMagick is generally route people go (though you'll need ImageMagick installed on the server).


The best approach would probably be entirely server side (i.e. with php or you language of choice). The other option would be entirely client side, that is, with Javascript and CSS - here you would need each letter to be absolutely positioned, and there would likely be a bit of performance overhead.


I'm not quite clear what you're asking. "Filling the frame" can be pretty easily done by using a mask. Most graphic platforms support this, on the server (gd, image magick) or on the client (flash, html canvas).

If you're asking how to programmatically create one of these, this is going to be slightly more complicated ;)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜