eugeneware/jpeg-js — pull request #2 by emma-floored (2014-06-30 19:52:11+00:00)
Title: Tweaked jpeg-js library encoder to allow for RGB image data (rather than...

... assuming RGBA)

Now call with jpg.encode(imageData, quality, channels), channels defaults to 3.