python-jpeg-encoder icon indicating copy to clipboard operation
python-jpeg-encoder copied to clipboard

JPEG version

Open JinyangGuo opened this issue 4 years ago • 1 comments

Hi,

Thanks for the JPEG implementation. I am wondering is this implementation the same as the PIL library or some standard library?

Regards, Jinyang

JinyangGuo avatar May 22 '21 06:05 JinyangGuo

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.

fangwei123456 avatar Jun 23 '21 03:06 fangwei123456