← All Blogs

Converting and Optimizing Images From the Command Line

29 November, 2021
~505 reads
Converting and Optimizing Images From the Command Line blog

Images take up to 50% of the total size of an average web page. And if images are not optimized, users end up downloading extra bytes. And if they’re downloading extra bytes, the site not only takes that much more time to load, but users are using more data, both of which can be resolved, at least in part, by optimizing the images before they are downloaded.

In this tutorial, you'll learn to write bash scripts that create and optimize images in different image formats, targeting the most common formats, including JPG, PNG, WebP, and SVG.

Read the full blog on CSS Tricks.

Thanks for reading 💜


I publish a monthly newsletter in which I share personal stories, things that I am working on, what is happening in the world of tech, and some interesting dev-related posts which I across while surfing on the web.

Connect with me through TwitterLinkedInGithub or send me an Email.

Ravgeet, Full Stack Developer and Technical Content Writer

📮 Join my newsletter

I share tips on how to get started with freelancing, remote jobs, developer-related stuff, startup ecosystem, and lots of insider secrets with my subscribers.

Subscribe →
🧠 More Interesting Reads
How to Build an Internal Company Wiki from Scratch
A company wiki is a knowledge hub where organization-specific information can be easily accessed by...
Create JSON Feed for a Jekyll blog
The big difference between JSON feed and XML feed is the ability to read and write JSON. Parsing XML...
Why Flutter Developer could be a million-dollar job?
Flutter is becoming a rage these days. Developers around the world are exploring this technology that...