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.
Comments
Post a Comment