{"id":9958,"date":"2024-04-05T14:29:54","date_gmt":"2024-04-05T14:29:54","guid":{"rendered":"https:\/\/meow.pro\/meow\/?p=9958"},"modified":"2024-04-05T16:42:10","modified_gmt":"2024-04-05T16:42:10","slug":"rough-tests-of-jpegli","status":"publish","type":"post","link":"https:\/\/meow.pro\/meow\/rough-tests-of-jpegli\/","title":{"rendered":"Rough tests of Jpegli"},"content":{"rendered":"\n<p><a href=\"https:\/\/opensource.googleblog.com\/2024\/04\/introducing-jpegli-new-jpeg-coding-library.html\" target=\"_blank\" rel=\"noreferrer noopener\">Jpegli<\/a>, a new JPEG coding library, does bring a significant compression ratio improvement, comparing to libjpeg-turbo and MozJPEG.<\/p>\n\n\n\n<p>I selected 332 lossless non-photographic PNG images for some rough tests, on macOS Sonoma 14.4.1. The images were recorded after applied with <a href=\"https:\/\/imageoptim.com\/mac\" target=\"_blank\" rel=\"noreferrer noopener\">ImageOptim<\/a>&#8216;s lossless optimisation for the minimal possible sizes, and Jpegli was directly from <a href=\"https:\/\/github.com\/libjxl\/libjxl\" target=\"_blank\" rel=\"noreferrer noopener\">libjxl<\/a> version 0.10.2.<\/p>\n\n\n\n<p>The built-in JPEG library (quality at 90, supposed to be libjpeg-turbo?) encoded them to 174,095,425 bytes, MozJPEG (quality at 91) encoded them to 145,553,618 bytes, and Jpegli (quality at 92) encoded them to 128,006,534 bytes. That is about 26.5% smaller than libjpeg-turbo and 12% smaller than MozJPEG.<\/p>\n\n\n\n<p>The quality values were tested initially with some images based on DSSIM, and the bonus 1 of MozJPEG and bonus 2 of Jpegli also reflected the <a href=\"https:\/\/cloudinary.com\/blog\/jpeg-xl-and-the-pareto-front\" target=\"_blank\" rel=\"noreferrer noopener\">latest benchmark<\/a> by Jon Sneyers. <\/p>\n\n\n\n<p>For fun, I tested Jpegli with XYB (&#8211;xyb), and the size becomes 112,809,722 bytes\u2014 even 11.9% smaller than conventional Jpegli. However, some softwares displayed thumbnails of XYB JPEG files with totally wrong colours.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/i.ibb.co\/XCwWNFM\/2024-04-05-22-24-32.png\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Finder thumbnails<\/figcaption><\/figure>\n\n\n\n<p>Even without XYB, Jpegli is still the most competitive choice for encoding JPEG images.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Jpegli, a new JPEG coding library, does bring a significant compression ratio improvement, comparing to libjpeg-turbo and MozJPEG. I selected 332 lossless non-photographic PNG images for some rough tests, on macOS Sonoma 14.4.1. The images were recorded after applied with ImageOptim&#8216;s lossless optimisation for the minimal possible sizes, and Jpegli was directly from libjxl version&hellip; <a class=\"more-link\" href=\"https:\/\/meow.pro\/meow\/rough-tests-of-jpegli\/\">Continue reading <span class=\"screen-reader-text\">Rough tests of Jpegli<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,33],"tags":[],"class_list":["post-9958","post","type-post","status-publish","format-standard","hentry","category-english","category-technology","entry"],"_links":{"self":[{"href":"https:\/\/meow.pro\/meow\/wp-json\/wp\/v2\/posts\/9958","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meow.pro\/meow\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meow.pro\/meow\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meow.pro\/meow\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/meow.pro\/meow\/wp-json\/wp\/v2\/comments?post=9958"}],"version-history":[{"count":0,"href":"https:\/\/meow.pro\/meow\/wp-json\/wp\/v2\/posts\/9958\/revisions"}],"wp:attachment":[{"href":"https:\/\/meow.pro\/meow\/wp-json\/wp\/v2\/media?parent=9958"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meow.pro\/meow\/wp-json\/wp\/v2\/categories?post=9958"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meow.pro\/meow\/wp-json\/wp\/v2\/tags?post=9958"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}