JPEG compression

The JPEG compression algorithm split the image into 8x8 blocks

Image

My thinking is that if we split an image into 8x8 blocks, feed each block to libjpeg and then merge the JPEG blocks into a lossless format(say PNG) , we should theoretically obtain the same JPEG if we had converted the original image directly into JPEG.However this isn't the case in practice.

Image used : https://drive.google.com/file/d/1ncp_gZ ... sp=sharing

Here is my code:

https://www.imagemagick.org/discourse-server/viewtopic.php?t=33298

猜你喜欢

转载自www.cnblogs.com/feng9exe/p/12230566.html