码迷,mamicode.com
首页 > 其他好文 > 详细

JPEG compression

时间:2020-01-23 15:29:21      阅读:99      评论:0      收藏:0      [点我收藏+]

标签:case   for   sha   disco   dia   course   gif   code   each   

The JPEG compression algorithm split the image into 8x8 blocks

技术图片

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

JPEG compression

标签:case   for   sha   disco   dia   course   gif   code   each   

原文地址:https://www.cnblogs.com/feng9exe/p/12230566.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!