I know that in php there is something that allows you to make pictures, based on text, fills and vectors. But is it permissible to create a picture from a decorated div block?
- Do you want to render HTML + CSS in a picture? On php it will not be easy. - koks_rs
- I just asked: "can I", but if it is very difficult ... or not worth it then all right, the question remains, is it possible to do this at all, but not with php? - MaximPro
- yandex.ru/… - splash58
- @MaximPro this can be done even in the browser, through canvas / foreignObject , but with some restrictions - PashaPash ♦
- What do you mean by this? .... just a couple of layers with different pictures can be docked .... but I suppose you want something else? - Lesiuk Alexey
|
1 answer
Here is a similar question: How to convert an HTML table into a picture (jpeg / png) by php?
Briefly:
- Place the HTML you need in a separate file on the server.
- Feed the link to it to the site that takes screenshots of sites.
- Receive a link to the screenshot in the answer.
- interesting idea - MaximPro
- @MaximPro, in any case it works fine for me. - Yuriy SPb ♦
- And do not throw the service? - MaximPro
- one@MaximPro, there are links in the link response and even a specific working example with the URL - YuriySPb ♦
- And if you don’t use third-party services, but take the screenshot yourself ?? =)) <pre> <code> <? Php $ im = imagegrabscreen (); imagepng ($ im, "myscreenshot.png"); imagedestroy ($ im); ?> </ code> </ pre> - YurikFirst
|