---

How to compress JPEG or PNG images in Linux using the terminal

There are many GUI applications on Linux that help optimize and compress images while retaining the original quality. In this article we will use two command-line based utilities , jpegoptim and OptiPNG. Let’s get started.