Hi,
I need free API or Plugins using php for converting Webpage to Image. i.e. Jpg or png format
I've tried api's like
1.webthumbnail.org
2.http://www.w3snapshot.com/support.php

Member Avatar for diafol

WHat's wrong with those?

webthumbnail.org is pretty easy to use.

<?php

    ## define constraints
    $height = 300;
    $width = 400;
    $screen = 1280;
    $format = 'png';
    $alt = 'this is alt';
    $url = 'http://daniweb.com';

echo '<img src="http://api.webthumbnail.org?width='.$width.'&height='.$height.'&screen='.$screen.'&format='.$format.'&url='.$url.'" alt="'.$alt.'" />';

Even after increasing the height that webpage is not displayed fully.

try this

## define constraints
    $height = 600;
    $width = 400;
    $screen = 1600;
    $format = 'png';
    $alt = 'this is alt';
    $url = 'http://daniweb.com';

echo '<img src="http://api.webthumbnail.org?width='.$width.'&height='.$height.'&screen='.$screen.'&format='.$format.'&url='.$url.'" alt="'.$alt.'" />';

If you run the above codes, you will see something like the screenshot below.

deded1796186251fba8de91b8853e87a

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.