Canvas on the server


#1

I’m unfamiliar with Meteor, but considering it for an up coming project. One of the requirements is the ability to render large HTML5 canvasses on the server and being able to save the image as a file. (Images are also rendered on the client - but don’t anticipate problems here)

Is this possible in Meteor? How would I go about doing it?


#2

This should be possible with [PhantomJS] (http://phantomjs.org/). PhantomJS is a full-featured Chrome browser that runs on the server backend (without user interface, but you can control it via JS). And you can take screenshots of the results.

There’s also a Meteor package that automatically sets up a PhantomJS server (https://atmospherejs.com/numtel/phantomjs-persistent-server), but I could not make this work on MacOS, so I had to patch it a bit.