Re:Ask HN: Possible to re-compress JPEG on the client before...
by yaix on Tuesday April 17, 2012 @01:01AM
(#3851231)
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.
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