Skip to main content

Website Screenshot (HTML5 Canvas / Services)


Alright all,



Been doing a bit of research and want to know if anyone else has tried this... and what approach would you take.



I'm planning on doing a website which will display a screenshot of a website (maybe based on the url in someones email address).



There's going to be alot of people getting this so, pre-production of the screenshots isn't a solution.



Soooooo... does anyone know of any solutions:



  1. Thumbnail service that builds on demand (no queuing)?

  2. HTML5/Canvas script that will let me do this. I've found one but it won't run cross site.

  3. Any other solution?



It'll be built in PHP.



Thanks



PVS.


Source: Tips4allCCNA FINAL EXAM

Comments

  1. This site http://html2canvas.hertzen.com/ is the best you will get right now with regard to a client side script. It uses the calculated properties of elements to render a page, and I must say it looks good!

    Update:
    A demo here: http://html2canvas.hertzen.com/tests/templates/projection/index.html . Click to toggle the 'real' view with the rendered image.

    ReplyDelete
  2. I've played about with wkhtmltoimage before, it was pretty good for what I was using it for, but does require you to install onto your server

    ReplyDelete
  3. You can use html2canvas. More information here.

    ReplyDelete

Post a Comment

Popular posts from this blog

Why is this Javascript much *slower* than its jQuery equivalent?

I have a HTML list of about 500 items and a "filter" box above it. I started by using jQuery to filter the list when I typed a letter (timing code added later): $('#filter').keyup( function() { var jqStart = (new Date).getTime(); var search = $(this).val().toLowerCase(); var $list = $('ul.ablist > li'); $list.each( function() { if ( $(this).text().toLowerCase().indexOf(search) === -1 ) $(this).hide(); else $(this).show(); } ); console.log('Time: ' + ((new Date).getTime() - jqStart)); } ); However, there was a couple of seconds delay after typing each letter (particularly the first letter). So I thought it may be slightly quicker if I used plain Javascript (I read recently that jQuery's each function is particularly slow). Here's my JS equivalent: document.getElementById('filter').addEventListener( 'keyup', function () { var jsStart = (new Date).getTime()...