{"id":9190,"date":"2023-09-23T22:09:24","date_gmt":"2023-09-23T20:09:24","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=9190"},"modified":"2023-09-23T22:09:27","modified_gmt":"2023-09-23T20:09:27","slug":"guetzli-bilder-unter-linux-perfekt-komprimieren-verkleinern","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/09\/23\/guetzli-bilder-unter-linux-perfekt-komprimieren-verkleinern\/","title":{"rendered":"Guetzli &#8211; Bilder unter Linux perfekt komprimieren \/ verkleinern"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Das JPG (<em>JPEG<\/em>)-Format ist derzeit (<em>noch<\/em>) Standard f\u00fcr digitale Bilder und ist daf\u00fcr bekannt, Fotos im Speicherverbrauch klein zuhalten. Will man Bilder jedoch im Internet im Speicherverbrauch so klein wie m\u00f6glich halten, um Webseiten schneller laden zu lassen, sind auch Standard-JPG-Bilder oft noch zu gro\u00df.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Um den Speicherverbrauch von JPG-Bildern nun zu verringern, komprimiert man diese &#8211; dies f\u00fchrt jedoch oft zu Verlusten in der Bildqualit\u00e4t. Diesem Problem hat sich vor einigen Jahren nun Google angenommen und die freie Software Guetzli entwickelt. Mit dieser Software gelingt es Bilder hoch zu komprimieren und trotzdem die Qualit\u00e4t hochzuhalten. In diesem Beitrag der Linux Bibel sehen wir uns diese Software etwa n\u00e4her an.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Guetzli installieren<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Unter auf Debian basierenden Linux-Distributionen installieren Sie diese Software ganz einfach \u00fcber die\u00a0Paket-Verwaltung\u00a0durch das Paket &#8222;<strong>guetzli<\/strong>&#8222;. Weiters finden Sie den Quellcode dieser Software unter\u00a0<a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/google\/guetzli\" target=\"_blank\">GitHub<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Guetzli nutzen<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Guetzli wird am\u00a0Terminal\u00a0genutzt. Nehmen wir einmal an ich habe hier das Bild &#8222;<strong>bild.jpg<\/strong>&#8220; und m\u00f6chte dieses ohne gro\u00dfen Aufwand komprimieren. Die Syntax lautet:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>guetzli bild_original.jpg Bild_komprimiert.jpg<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Sie geben zu Beginn das Original-Bild an, zuletzt das zu erstellende komprimierte Bild. Guetzli verarbeitet das Bild direkt in den Arbeitsspeicher &#8211; daher k\u00f6nnen Sie auch problemlos das Original komprimieren (<em>ein Zur\u00fcck ist jedoch nicht m\u00f6glich<\/em>) &#8211; in diesem Fall geben Sie ganz einfach nach dem Original noch einmal dessen Namen an:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>guetzli bild_original.jpg bild_original.jpg<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Die Software liefert keine Ausgabe und braucht je nach Gr\u00f6\u00dfe des Bildes einige Sekunden, die Qualit\u00e4t leidet dabei jedoch so gut wie gar nicht &#8211; ein kleines Beispiel:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"569\" height=\"1024\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/katka-1-569x1024.jpg\" alt=\"\" class=\"wp-image-9191\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/katka-1-569x1024.jpg 569w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/katka-1-167x300.jpg 167w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/katka-1-83x150.jpg 83w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/katka-1-768x1382.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/katka-1.jpg 800w\" sizes=\"auto, (max-width: 569px) 100vw, 569px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Original 121,9 KB<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"569\" height=\"1024\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/katka_komprimiert-569x1024.jpg\" alt=\"\" class=\"wp-image-9192\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/katka_komprimiert-569x1024.jpg 569w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/katka_komprimiert-167x300.jpg 167w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/katka_komprimiert-83x150.jpg 83w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/katka_komprimiert-768x1382.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/katka_komprimiert.jpg 800w\" sizes=\"auto, (max-width: 569px) 100vw, 569px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Komprimiert 114,3 KB<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Mittels der Option &#8222;<strong><code>--quality N<\/code><\/strong>&#8220; k\u00f6nnen Sie zus\u00e4tzlich die Qualit\u00e4t angeben &#8211; wie \u00fcblich von &#8222;<strong>0<\/strong>&#8220; bis &#8222;<strong>100<\/strong>&#8220; Prozent, also etwa:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>guetzli --quality 90 bild.jpg bild_komprimiert.jpg<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Das JPG (JPEG)-Format ist derzeit (noch) Standard f\u00fcr digitale Bilder und ist daf\u00fcr bekannt, Fotos im Speicherverbrauch klein zuhalten. Will man Bilder jedoch im Internet im Speicherverbrauch so klein wie m\u00f6glich halten, um Webseiten schneller laden zu lassen, sind auch Standard-JPG-Bilder oft noch zu gro\u00df. Um den Speicherverbrauch von JPG-Bildern nun zu verringern, komprimiert man [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":61,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51],"tags":[52],"class_list":["post-9190","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bildbearbeitung","tag-bildbearbeitung"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/9190","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=9190"}],"version-history":[{"count":1,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/9190\/revisions"}],"predecessor-version":[{"id":9193,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/9190\/revisions\/9193"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/61"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=9190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=9190"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=9190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}