5 ms·
Though it meant a bit of server setup, I had a good experience using self-hosted PhantomJS. I have a mini how-to here, in the "Rendering the screenshot" section
by petewarden 15y ago
Though it meant a bit of server setup, I had a good experience using self-hosted PhantomJS. I have a mini how-to here, in the "Rendering the screenshot" section:
http://petewarden.typepad.com/searchbrowser/2011/11/how-to-post-a-screenshot-of-your-app-to-a-users-facebook-account.html http://petewarden.typepad.com/searchbrowser/2011/11/how-to-p...
- dangrossman 15y agoThanks. That was easier to set up than I expected -- lots of prerequisites but all easy to install. I just need to figure out why the fonts are coming out wrong, then maybe it'll make more sense to set up a queue to build screenshots myself with this instead of paying for a service.
- dangrossman 15y agohttp://i.imgur.com/FLGH8.png http://i.imgur.com/FLGH8.png
- bkyan 15y agoHow long did these take to render with phantomjs?
- dangrossman 15y agoI set up a queue/worker setup with a max of 5 threads to generate screenshots with phantomjs then resize them with imagemagick. It was averaging one URL per second. Wasn't very taxing on the CPU so probably could be pushed much higher even on this little VPS.
- bkyan 15y agoExcellent! Thanks for the tip. I'm currently using url2png and imagemagick. URL2PNG is an excellent service, but probably won't be economically feasible for me, long term, when I get to trying to scale my app. ( I'm working on a visual bookmarking app with screenshot thumbnails serving as tiles on a draggable corkboard interface. You can double-click the tiles to open the target url in a draggable iframe. Example: http://beta.mindcast.com/ui/4k82yb5zb2ov http://beta.mindcast.com/ui/4k82yb5zb2ov )