查看“︁图像压缩”︁的源代码
←
图像压缩
跳转到导航
跳转到搜索
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
根据我自己的体验,以及浏览的他人的文章来看可以简单得出结论:普遍情况下, * jpg/png等传统格式兼容性强,webp/avif格式压缩效率高;其中webp支持无损因此对高质量图像效果更好,avif更适合低分辨率场景,1000px以下完胜其他格式(对于线条规则且内容很少的svg更适合);对于有损的高质量文件则jxl更适合。 * avif压缩消耗的资源也更多,无损压缩的表现并不乐观,因此很适合非摄影、设计等对图片质量有高要求的个人博客(用于补充文本信息,所提示用)使用,对系列站点这种1c2g1m的小机子来说,减少的体积节约的带宽占用是很香的。 ** 主要用在《食日记》中,原始图像分辨率为4032*3024,缩放到1200*900,并以600*450px引用(firefox系浏览器可以[[浏览器拓展工具记录#Imagus|安装拓展]]或右键标签页打开1200px的图像) 我使用[https://imagemagick.org/index.php ImageMagick] * 转换:<code>convert 20230825.jpg -resize 1200x900 20230825.AVIF</code> * 批量转换:<code>mogrify -resize 1200x900 -format avif *.jpg</code> * convert和mogrify最直观的区别是,前者不会覆盖原始文件,后者可以,但如果转了格式也不能覆盖原始文件。 ImageMagick指南: * [https://imagemagick.org/Usage/ Examples of ImageMagick Usage] * [https://wiki.archlinux.org/title/ImageMagick ImageMagick - archlinux wiki] * [https://linux.die.net/man/1/convert convert(1) - Linux man page] * [https://www.smashingmagazine.com/2015/06/efficient-image-resizing-with-imagemagick/ Efficient Image Resizing With ImageMagick] 其他工具推荐: * [https://trimage.org/ trimage]:(jpg/png)无损压缩,支持图形化界面。 * [https://github.com/Huluti/Curtail curtail]:(jpg/jpeg/WebP/svg )有损/无损压缩,支持图形化界面,用法参考:[https://www.makeuseof.com/compress-image-files-on-linux-using-curtail/ How to Compress Image Files on Linux Using Curtail]。 * [https://github.com/dropbox/lepton Lepton](已停止维护):无损(jpg)压缩,用法参考:[https://manpages.ubuntu.com/manpages/focal/man1/lepton.1.html ubuntu manpages],windowso可以使用:[https://www.downloadcrew.com/article/34699-leptongui LeptonGUI]。 * [https://pngquant.org/ pngquant]:有损(png)压缩,用法参考[https://github.com/kornelski/pngquant github]。 * [https://github.com/JayXon/Leanify Leanify]:无损文件压缩器。 * [https://github.com/fhanau/Efficient-Compression-Tool Efficient-Compression-Tool]:无损压缩,用法参考:[https://www.thegeekdiary.com/ect-efficient-compression-tool/ thegeekdiary] 参考文章: * [https://ma.ttias.be/optimize-size-png-images-automatically-webserver-optipng/ Optimize the size of .PNG images automatically on your webserver with optipng] * https://news.ycombinator.com/item?id=17540712 别人的对比文章: * [https://siipo.la/blog/is-webp-really-better-than-jpeg Is WebP really better than JPEG?] * [https://siipo.la/blog/whats-the-best-lossless-image-format-comparing-png-webp-avif-and-jpeg-xl What’s the best lossless image format? Comparing PNG, WebP, AVIF, and JPEG XL] * [https://netflixtechblog.com/avif-for-next-generation-image-coding-b1d75675fe4 AVIF for Next-Generation Image Coding] * [https://medium.com/open-pbs/experimenting-with-png-and-jpg-optimization-d1428e24928c Experimenting with PNG and JPG Optimization] * [https://www.olegkikin.com/png_optimizers/ Comparison of lossless PNG compression tools] * https://twitter.com/jonsneyers/status/1563442356493230080 [[Category:策略]]
返回
图像压缩
。
导航菜单
个人工具
登录
命名空间
页面
讨论
不转换
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
臺灣正體
查看
阅读
查看源代码
查看历史
更多
搜索
导航
首页
最近更改
站点信息
更新日志
所有内容
三部曲
互联网
提问的艺术
策略与名词目录
建站
LAMP
WIKI功能
互联网
慢讯
OSINT项目
工具
链入页面
相关更改
特殊页面
页面信息