News for hackers. Stuff that matters.
Re:Ask HN: Possible to re-compress JPEG on the client before... by alias1 on Monday April 16, 2012 @07:14PM (#3850010)
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

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.