Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can REBOL dynamically generate graphics for websites?

0
10 Posted

Can REBOL dynamically generate graphics for websites?

0

Yes it can, but it depends on your server and version of REBOL. If you use Windows for your server, then REBOL/View can be used with server scripts (such as in CGI) to dynamically generate graphics. This is easly done by creating layouts then converting them to images: out: layout [ image %picture.jpg text “This is a picture” ] img: to-image out save/png %image.png img Note that only PNG output is currently available, but GIF output will be added in next release (because the patent has finally expired.) We also want to add JPEG output. If you use Linux, BSD, etc., then the results will depend on whether your server has X Windows (graphical user interface) installed and initialized. If not, then REBOL will be able to generate images and effects (requires REBOL/Command), but not be able to generate text, because it uses the X Fonts to do so. If X Windows is running, you can use the same code as shown above.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.