{"id":34567,"date":"2021-09-10T14:43:25","date_gmt":"2021-09-10T14:43:25","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=34567"},"modified":"2021-09-10T14:43:25","modified_gmt":"2021-09-10T14:43:25","slug":"yoga-image-optimizer-graphical-tool-convert-png-jpeg-webp","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2021\/09\/yoga-image-optimizer-graphical-tool-convert-png-jpeg-webp\/","title":{"rendered":"YOGA Image Optimizer &#8211; Graphical Tool to Convert &#038; Compress PNG, JPEG, WebP"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/yoga-icon1200.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/yoga-icon250.png\" alt=\"\" width=\"250\" height=\"250\" class=\"alignleft size-thumbnail wp-image-34569\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/yoga-icon250.png 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/yoga-icon250-150x150.png 150w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>YOGA Image Optimizer is a graphical tool to batch convert photos into JPEG, PNG and WEBP, and compress file sizes while having equivalent quality.<\/p>\n<p>It&#8217;s a free and open-source tool based on YOGA command line tool, which can also convert and optimize 3D models from various formats to glTF and GLB.<\/p>\n<h3>YOGA:<\/h3>\n<p>The <a href=\"https:\/\/github.com\/wanadev\/yoga\" rel=\"noopener\" target=\"_blank\">YOGA<\/a> backend uses Python Pillow library to convert images into PNG, JPEG, or WebP as you prefer. And it uses Google&#8217;s Guetzli library to generate JPEG that are typically 20-30% smaller than libjpeg while having some quality. Google&#8217;s Zopflipng and libwebp libraries are in use for optimizing other two image formats.<\/p>\n<p>The command line tool also support converting and optimizing 3D models using the Open Asset Import Library (Assimp).<\/p>\n<h3>YOGA Image Optimizer:<\/h3>\n<p>The official front-end for YOGA provides an easy to use graphical interface to do converting and optimizing process in Linux and Windows.<\/p>\n<p>Simply open a batch of photo images (<i>press Shift or Ctrl while choosing files<\/i>), it shows the thumbnails, input file name and size, as well as output name and file format.<\/p>\n<p>Before you clicking &#8220;Optimize&#8221;, you can choose output format and set compress level for each or a selection of images.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/yoga-image-optimizer.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/yoga-image-optimizer-600x292.jpg\" alt=\"\" width=\"600\" height=\"292\" class=\"aligncenter size-large wp-image-34568\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/yoga-image-optimizer-600x292.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/yoga-image-optimizer-300x146.jpg 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/yoga-image-optimizer-768x374.jpg 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/yoga-image-optimizer.jpg 1295w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/github.com\/flozz\/yoga-image-optimizer\" rel=\"noopener\" target=\"_blank\">YOGA Image Optimizer<\/a> also features:<\/p>\n<ul>\n<li><b>Multi-thread support.<\/b> You can set how many CPU cores to use.<\/li>\n<li><b>GTK theme support.<\/b> It allows to choose between all installed GTK theme for the app only.<\/li>\n<li>Dark Mode.<\/li>\n<li>Custom output pattern.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/yoga-settings.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/yoga-settings.jpg\" alt=\"\" width=\"470\" height=\"466\" class=\"aligncenter size-full wp-image-34572\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/yoga-settings.jpg 470w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/yoga-settings-300x297.jpg 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/yoga-settings-150x150.jpg 150w\" sizes=\"auto, (max-width: 470px) 100vw, 470px\" \/><\/a><\/p>\n<h3>Install YOGA Image Optimizer in Ubuntu Linux:<\/h3>\n<p>For Linux, the software can be installed either via universal Flatpak package or using pip (Python Package Installer).<\/p>\n<h4>1. Flatpak Package<\/h4>\n<p>Open terminal by pressing Ctrl+Alt+T on keyboard, you can then run following commands one by one to get the software via Flatpak in Ubuntu 20.04 and higher. For Ubuntu 18.04, you need to add <a href=\"https:\/\/launchpad.net\/~flatpak\/+archive\/ubuntu\/stable\" rel=\"noopener\" target=\"_blank\">this PPA<\/a> before getting started.<\/p>\n<p>a. ) Install the flatpak daemon if you don&#8217;t have it:<\/p>\n<pre>sudo apt install flatpak<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/06\/apt-flatpak.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/06\/apt-flatpak-600x102.jpg\" alt=\"\" width=\"600\" height=\"102\" class=\"aligncenter size-large wp-image-10296\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/06\/apt-flatpak-600x102.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/06\/apt-flatpak-450x77.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/06\/apt-flatpak.jpg 705w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>b.) Add the Flathub the preferred repository hosting Flatpak package:<\/p>\n<pre>flatpak remote-add --if-not-exists flathub https:\/\/flathub.org\/repo\/flathub.flatpakrepo<\/pre>\n<p>c.) Finally install the image converter and optimizer via command:<\/p>\n<pre>flatpak install flathub org.flozz.yoga-image-optimizer<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/flatpak-yoga.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/flatpak-yoga.png\" alt=\"\" width=\"600\" height=\"342\" class=\"aligncenter size-full wp-image-34573\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/flatpak-yoga.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/09\/flatpak-yoga-300x171.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>(<b>Optional<\/b>) For any reason, you can easily remove the software by running command in temrinal:<\/p>\n<pre>flatpak uninstall --delete-data org.flozz.yoga-image-optimizer<\/pre>\n<h4>2. Install the package via pip3:<\/h4>\n<p>For those don&#8217;t like the Flatpak package, use the Python pip3 package installer. It however <b>does NOT create app shortcut<\/b> for launching it from the &#8216;Show Applications&#8217; start menu.<\/p>\n<p>a.) Firstly, open terminal and run command to install required libraries:<\/p>\n<pre>sudo apt install git build-essential python3 python3-dev python3-pip libgirepository1.0-dev libcairo2-dev pkg-config gir1.2-gtk-3.0<\/pre>\n<p>b.) Next install the package via command:<\/p>\n<pre>sudo pip3 install yoga-image-optimizer<\/pre>\n<p>The pip package does not has app shortcut, you need to either run <code>yoga-image-optimizer<\/code> command to start it from terminal and create a <code>.desktop<\/code> file manually.<\/p>\n<p>(<b>Optional<\/b>) To remove the package, use command:<\/p>\n<pre>sudo pip3 install yoga-image-optimizer<\/pre>","protected":false},"excerpt":{"rendered":"<p>YOGA Image Optimizer is a graphical tool to batch convert photos into JPEG, PNG and WEBP, and compress file sizes while having equivalent quality. It&#8217;s a free and open-source tool based on YOGA command line tool, which can also convert and optimize 3D models from various formats to glTF and GLB. YOGA: The YOGA backend [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":34568,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[52],"tags":[1432],"class_list":["post-34567","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-app-review","tag-photo"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/34567","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=34567"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/34567\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/34568"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=34567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=34567"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=34567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}