Skip to content

Comment on Show HN: A Chrome extension that adds moustaches to every face on the web

Comments

This is not that novel of an extension. It's essentially the following (see https://github.com/forward/mustachio-chrome/blob/master/must...):

    var i = document.images.length;
    while(i--) document.images[i].src = "http://mustachy.heroku.com/?src=" + document.images[i].src;
I might be more impressed if the author ported mustachio (https://github.com/afeld/mustachio) to JavaScript.

Doesn't that just run on node.js? Replacing the image with a canvas tag that renders the original image + mustache image would require no server.

Correct, though there does need to be a server component to communicate with the Face.com API. Face detection is a much slower process than image compositing, so this is really the limiting factor.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.