-4

I have a html page http://gthost.dyndns.org/gtfb_final/cam/3097952a5c3a90d7d35.38138446.html. I want to convert it to image (480 X 480). This full html will be converted to an image. Is there any PHP code for that?

Ekram
  • 149
  • 2
  • 8
  • If you have control over the server, you could try the flying toaster java project. – Oscar Pérez Dec 09 '13 at 13:36
  • Duplicate of [Website screenshots using PHP](http://stackoverflow.com/questions/757675/website-screenshots-using-php) and many, many more – Mark Baker Dec 09 '13 at 13:38
  • I don't think its possible what you're asking. You could use a PDF conversion library using that HTML page as the source. Just Google one. – thatonefreeman Dec 09 '13 at 13:38
  • Possible duplicate of http://stackoverflow.com/questions/757675/website-screenshots-using-php – Godinall Dec 09 '13 at 13:39
  • Thank you for your replies. I went through those question threads and also seems like it's not possible in pure PHP. You need to do some stuff in server side. – Ekram Dec 10 '13 at 09:47

2 Answers2

1

look at this: pear.php.net html renderer

and for self doing: 5 Minute tutorial

for other results search for html rendering in php (or similar)

Community
  • 1
  • 1
Felix
  • 2,531
  • 14
  • 25
0

You can install Imagemagick and invoke it with exec to render HTML into an image.

http://www.imagemagick.org/

Paolo
  • 15,233
  • 27
  • 70
  • 91