php - Get website screenshot and use it on image tag -


all,

i'm trying use <img> tag display webpage thumbnail. front page of site thumbnail image.

so example, if have google.com i'd convert front page image , this:

<?php $url = 'http://google.com'; //make image how echo '<img src="$url_image">'; 

does have idea how this?

as alternative, use thumbalizr also:

<?php $url = 'http://www.google.com'; $api = "http://api.thumbalizr.com/?url={$url}&width=250"; echo "<img src='{$api}' alt='thumbnail site' />"; ?> 

sidenote: show watermark.

out


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -