FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » web page to image
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: web page to image [message #175584 is a reply to message #175561] Mon, 10 October 2011 09:12 Go to previous messageGo to previous message
alvaro.NOSPAMTHANX is currently offline  alvaro.NOSPAMTHANX
Messages: 277
Registered: September 2010
Karma:
Senior Member
El 09/10/2011 2:39, bob escribió/wrote:
> I want to turn a web page into a 768x1024 image using PHP. For
> instance the script might load http://www.example.com/ and output a
> 768x1024 image. Anyone know how to do this?

I don't think you'll find a pure PHP rendering engine but, if installing
new software is an option, you can try wkhtmltopdf to convert to PDF and
then ImageMagick to convert the first page to picture:

http://code.google.com/p/wkhtmltopdf/
http://www.imagemagick.org/script/index.php


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Editing a combobox
Next Topic: Re: Mass Twitter Account Creator (PHP)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Sep 08 02:15:32 GMT 2024

Total time taken to generate the page: 0.05265 seconds