Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Image created programmatically? [closed]

This is a beautiful image. I'm wondering how it can be generated programmatically with an image-processing library like imagemagick or gd?

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

alt text

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

like image 817
jblue Avatar asked Jul 01 '26 04:07

jblue


2 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).

like image 75
Marc Bollinger Avatar answered Jul 03 '26 17:07

Marc Bollinger


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.

like image 22
wsanville Avatar answered Jul 03 '26 19:07

wsanville



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!