H
H
Hazrat Hajikerimov2014-10-07 01:29:35
PHP
Hazrat Hajikerimov, 2014-10-07 01:29:35

How to take a screenshot in PHP?

There is such a task:
Develop a function that receives a url argument, after which it takes the screen of the site completely.
I came across this API s-shot.ru on the Internet , everything is fine, multifunctional is what you need. But the problem is that it does not load fonts or displays them incorrectly, below is an example of a toster above what I did myself, below is what the API issued.
db591d1054b940c39a849a313239ce7f.png36660cd6ee034190afd6d7a2a2ccfb62.png
Perhaps the reason is that the Linux server and there, as usual, there is a problem with fonts.
Please advise another option, or how to implement all this without an additional server.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2014-10-07
@hazratgs

exec (or task queue) + phantom.js

A
Alexander Taratin, 2014-10-07
@Taraflex

wkhtmltopdf.org

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question