Converting and Optimizing Images From the Command Line

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…


This content originally appeared on DEV Community and was authored by Ravgeet Dhillon

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


This content originally appeared on DEV Community and was authored by Ravgeet Dhillon


Print Share Comment Cite Upload Translate Updates
APA

Ravgeet Dhillon | Sciencx (2021-11-29T04:54:45+00:00) Converting and Optimizing Images From the Command Line. Retrieved from https://www.scien.cx/2021/11/29/converting-and-optimizing-images-from-the-command-line/

MLA
" » Converting and Optimizing Images From the Command Line." Ravgeet Dhillon | Sciencx - Monday November 29, 2021, https://www.scien.cx/2021/11/29/converting-and-optimizing-images-from-the-command-line/
HARVARD
Ravgeet Dhillon | Sciencx Monday November 29, 2021 » Converting and Optimizing Images From the Command Line., viewed ,<https://www.scien.cx/2021/11/29/converting-and-optimizing-images-from-the-command-line/>
VANCOUVER
Ravgeet Dhillon | Sciencx - » Converting and Optimizing Images From the Command Line. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/11/29/converting-and-optimizing-images-from-the-command-line/
CHICAGO
" » Converting and Optimizing Images From the Command Line." Ravgeet Dhillon | Sciencx - Accessed . https://www.scien.cx/2021/11/29/converting-and-optimizing-images-from-the-command-line/
IEEE
" » Converting and Optimizing Images From the Command Line." Ravgeet Dhillon | Sciencx [Online]. Available: https://www.scien.cx/2021/11/29/converting-and-optimizing-images-from-the-command-line/. [Accessed: ]
rf:citation
» Converting and Optimizing Images From the Command Line | Ravgeet Dhillon | Sciencx | https://www.scien.cx/2021/11/29/converting-and-optimizing-images-from-the-command-line/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.