|
Posted by Miguel Cruz on 12/17/67 11:54
"BG Mahesh" <mahesh@mahesh.com> wrote:
> Given a URL I want the snapshot of that page as an image. Something
> like
> http://pthumbnails.alexa.com/image_server.cgi?id=yoursite.com&size=large&url=h
> ttp://google.com
>
> How do I achieve this in PHP?
You can't, at least not with PHP on its own, unless you spend months
developing an HTML renderer.
How about scripting a web browser? You can install Mozilla on the
server, and your PHP program can ask it to render the page, print it to
PostScript, and then use ImageMagick to convert that to the image format
of your choice.
miguel
--
Photos from 40 countries on 5 continents: http://travel.u.nu
Latest photos: Malaysia; Thailand; Singapore; Spain; Morocco
Airports of the world: http://airport.u.nu
Navigation:
[Reply to this message]
|