I just went through this. Phantomjs will get you a beautiful image, but it's full-sized. You'll also need to install the imageMagick or graphicsMagick binary with a suitable node wrapper to resize the images to thumbnail size. Also, the phantomJs build hasn't been ported to smartOs yet, so you'll need to run a separate ubutu instance if you're hosting at joyent. There are lots of services out there too. We did a little bake-off and picked http://www.url2png.com.
-g On Saturday, May 4, 2013 7:59:10 PM UTC-7, Mark Hahn wrote: > > I need to make thumbnails that represent web pages given the urls. I'd > prefer to do it in a node environment. I wouldn't like to install lampp or > some other environment for this one purpose. > > I know jsdom and cheerio but that only gets me to the dom. How do I > render that to an image? Node already has V8 lying around but that doesn't > include webkit, right? > > Any ideas, no matter how wild, would be appreciated. > > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
