I have seen these around before...either as a web service or other...
Ideally I'd like a PHP extension which accepted HTML file and rendered the result as an PNG.
Anyone know of anything?
Cheers,
Alex
HTML rendering service or API
Moderator: General Moderators
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: HTML rendering service or API
By far the easiest way is to use something like http://www.shrinktheweb.com/ ... it's possible to do it with scripting (eg COM on Windows, shell on Linux) but it's incredibly fragile. How you actually achieve it really depends on your server platform.
If you're on Windows try http://uk2.php.net/manual/en/function.i ... window.php ... maybe you'll have more luck with it than I have. I've never got it to work.
If you're on Windows try http://uk2.php.net/manual/en/function.i ... window.php ... maybe you'll have more luck with it than I have. I've never got it to work.
Re: HTML rendering service or API
or at least available.
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: HTML rendering service or API
onion: Why weren't you able to get it to work on Windows?
If my server was a Windows machine I could probably figure it out, unfortunately my server is a Linux Debian...
I managed to dig up some additional resources:
http://www.boutell.com/webthumb/
http://khtml2png.sourceforge.net/
http://ipinfo.info/html/rendering_services.php
Hopefully one of these will suffice.
If my server was a Windows machine I could probably figure it out, unfortunately my server is a Linux Debian...
I managed to dig up some additional resources:
http://www.boutell.com/webthumb/
http://khtml2png.sourceforge.net/
http://ipinfo.info/html/rendering_services.php
Hopefully one of these will suffice.
Re: HTML rendering service or API
No idea. It just returned a blank image handle. I didn't try very hard..PCSpectra wrote:onion: Why weren't you able to get it to work on Windows?