In this article, we will have explained the necessary steps to install and use the YOGA Image Optimizer on Ubuntu 20.04 LTS. Before continuing with this tutorial, make sure you are logged in as a user with
sudo privileges. All the commands in this tutorial should be run as a non-root user.
YOGA Image Optimizer is a graphical tool to batch convert photos into JPEG, PNG, and WEBP, and compress file sizes while having equivalent quality. YOGA Image Optimizer is written in python and released under GNU General Public License v3.0. You can save more than 20 to 40 percent in Jpeg and Png images. It comes with Multi-thread support, Custom output, and dark mode support.
Install YOGA Image Optimizer on Ubuntu 20.04
Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.
sudo apt update sudo apt upgrade sudo apt install build-essential cmake python3 python3-dev python-setuptools
Step 2. Install PIP on the Ubuntu system.
- Install pip for Python 3
The commands below install pip to be used with Python version 3:
sudo apt update sudo apt install python3-pip
Use the command below to verify it:
Step 3. Install YOGA Image Optimizer on the Ubuntu system.
Run the following command as root on Linux to install YOGA:
pip3 install yoga
Step 4. YOGA Basic Usage.
YOGA is a command-line tool and a library that can:
- Convert and optimize images from various formats to JPEG, PNG, and WEBP,
- Convert and optimize 3D models from various formats to glTF and GLB.
For example, converting and optimizing an image from CLI:
yoga image input.png output.png yoga image --output-format=jpeg --jpeg-quality=84 input.png output.jpg yoga image --help
For example, converting and optimizing a 3D model from CLI:
yoga model input.fbx output.glb yoga model --no-graph-optimization --no-meshes-optimization --image-output-format=jpeg --image-jpeg-quality=84 input.fbx output.glb yoga model --help
That’s all you need to do to install YOGA on Ubuntu 20.04 LTS Focal Fossa. I hope you find this quick tip helpful. For further reading on Install YOGA Image Optimizer, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.