python-jpeg-encoder
python-jpeg-encoder copied to clipboard
JPEG version
Hi,
Thanks for the JPEG implementation. I am wondering is this implementation the same as the PIL library or some standard library?
Regards, Jinyang
Hi, they may be not same. I do not know what kind of Hoffman coding table
https://github.com/fangwei123456/python-jpeg-encoder/blob/d92dcf7718543d9f09c0df43bb7df2e6ada76394/huffmanEncode.py#L20
and std_quant_tbl
https://github.com/fangwei123456/python-jpeg-encoder/blob/d92dcf7718543d9f09c0df43bb7df2e6ada76394/jpegEncoder.py#L17
they use. So, it is rare that two encoder will output the same binary files.