How To Install zimg on CentOS 7

In this tutorial we learn how to install zimg on CentOS 7. zimg is Scaling, color space conversion, and dithering library

Introduction

In this tutorial we learn how to install zimg on CentOS 7.

What is zimg

The “z” library implements the commonly required image processing basics of scaling, color space conversion, and depth conversion. A simple API enables conversion between any supported formats to operate with minimal knowledge from the programmer. All library routines were designed from the ground-up with correctness, flexibility, and thread-safety as first priorities. Allocation, buffering, and I/O are cleanly separated from processing, allowing the programmer to adapt “z” to many scenarios.

We can use yum or dnf to install zimg on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install zimg.

Install zimg on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install zimg using yum by running the following command:

sudo yum -y install zimg

Install zimg on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install zimg using dnf by running the following command:

sudo dnf -y install zimg

How To Uninstall zimg on CentOS 7

To uninstall only the zimg package we can use the following command:

sudo dnf remove zimg

References

Summary

In this tutorial we learn how to install zimg on CentOS 7 using yum and dnf.