PHP-imagegrabscreen as a method to create website-thumbnails

well i am playin around with imagegrabscreen — Captures the whole screen - a PHP-script that scrapes 500 different sites and stores the results as thumbnails

This example demonstrates how to take a screenshot of the current screen and save it as a png image.

imagegrabscreen

as a base for a webscraper that runs with PHP and collects images i thought we c

note - all i need are previews or thumbnails i do not need fully fledged images.


<?php
$im = imagegrabscreen();
imagepng($im, "myscreenshot.png");
imagedestroy($im);
?>

This example demonstrates how to take a screenshot of the current screen and save it as a png image.

well - to spell it out. i need approx 500 to 1000 webshots ( images that are stored as thumbnails with 240 pixels at the long distance at maximum.

what do you guess. i think it should be pretty obvious but I’ll mention it anyway, if we re running GPU-intensive applications (not CPU), calling this
function will cause quite some significant lag to our machine and server response until the request is complete.
For this to work our Apache service must be set to ‘Allow service to interact with desktop’ otherwise we will just get a blank image.

**Question: **how to implement the long list of 500 URLS that i have to visit and create a thumbnails?