Hacker News new | ask | show | jobs
by alias1 5176 days ago
From a technical perspective it's definitely possible. I can't remember off hand, but i'm almost certain I came across something that did this before..

A quick google turned up the following:

http://www.bytestrom.eu/blog/2009/1120a_jpeg_encoder_for_jav...

https://gist.github.com/1245476

Hope it helps

1 comments

Thanks. I had seen this encoder before, it has one problem

>> The encoder expects a „CanvasPixelArray“ (as returned by the „getImageData“ method of a canvas).

I'd like to use raw binary data simply read from the local file system, and run it through an encoder.