Answer the question
In order to leave comments, you need to log in
How to get a site image?
I make visual bookmarks and the question arose, how to get the image of the site by the link?
Answer the question
In order to leave comments, you need to log in
Option 1
Option 2
$img = file_get_contents('http://www.example.com/');
if ($img) {
file_put_contents($file, $img);
}
Use phantom.js out of the box there is a script in the examples.
Run from the command line (CLI) and the shot is ready.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question