Image-FromHTML - Convert HTML to an image using Perl and PhantomJS
- PhantomJS - http://phantomjs.org/download.html
use Image::FromHTML;
my $image = Image::FromHTML->new( html => '<h1>Hello World</h1>' );
my $base64_png = $image->to_png;
Returns a base64 encoded PNG representation of the HTML provided.
Keith Broughton [email protected]
This software is copyright (c) 2014 by Keith Broughton
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.