How do I take a snapshot of an image of a webpage in php?

I am using php and I want to take a snapshot of my web page using php. Something similar to this

http://www.moneycontrol.com/gd/mail_indices.php

How can i do this?

+2


source to share


4 answers


The fastest and most reliable way to create images in PHP is to look at the GD Library . They have a variety of features to help you create your image easily.



If you need a font that is available in a Windows font but not in a PHP font, you can use this tool to convert it: http://www.wedwick.com/wftopf.exe

+1


source


To take snapshots of the website rather than the suggested ones for creating an image with text in it, you can use

http://iecapt.sourceforge.net/ for snapshots using the IE rendering engine or http://cutycapt.sourceforge.net/ for Webkit snapshots (Safari / Chrome)



I highly recommend the latter.

+2


source


You can use Imagemagick .

+1


source


Theres is a complete summary of the imaging capability in Php here . Another option that hasn't been mentioned already is Cairo .

+1


source







All Articles