Reply to Re: Site preview with thumb

Your name:

Reply:


Posted by Rik Wasmus on 09/27/07 20:48

On Thu, 27 Sep 2007 21:19:17 +0200, Krustov <me@privacy.net> wrote:

> <comp.lang.php>
> <Erwin Moller>
> <Thu, 27 Sep 2007 16:32:04 +0200>
> <46fbbf89$0$230$e4fe514c@news.xs4all.nl>
>
>> That is not a PHP script, but a hell of a job.
>> You need software that renders HTML/CCS/javascript/etc and then make a
>> image of it.
>> I doubt you'll find a php script alone that accomplishes that.
>>
>
> - grab the html code
> - grab the images
> - create a blank 1024x768 image using the background colour (if defined)
> - create the tables and/or divs
> - paste the grabbed images onto it

Pfff, parsing css would be quite a horrifying task. Perfectly doable
offcourse, just not my idea of fun

> - create a thumbnail of the large 1024x768 image
>
> As its going to a thumbnail it doesnt need to be pixel perfect .
>
> If i wasnt in the middle of writing a guestbook at the moment - i'd have
> a bash at it myself .

To avoid all that writing yourself: there are descent HTML2PS packages,
and descent PS2PNG/PS2JPEG convertors... Just don't expect any magic to
happen. Due to a lot of flash/javascript/other plugin usage, the only
thing reliable is to take an actual screenshot in a descent browser, so it
would probably require a server with X...
--
Rik Wasmus

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация