Why I should not compress images in HTTP headers?

╄→гoц情女王★ 提交于 2019-12-01 03:05:25

Your images should already be compressed - any extra compression won't have any noticeable effect on filesize, but will increase processing time.

Compressing files that have already been compressed very rarely results in a reduction in filesize, and can often increase filesize.

Images such as GIF, JPEG or PNG are already compressed via highly specialized algorithms that achieve better result than general purpose algorithms such as deflate.

Therefore, re-compressing them yields little to no gain in size, and can even make files bigger, with the added cost of server-side processing.

So, in other words... do not compress images.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!