Batch Resize Photos in Linux

Oops! I forgot to tell my mom to resize her photos before uploading them to RealCajunRecipes.com. We had colossal 7MB+ images floating around on the web server, and SSD space doesn’t come cheap. No problem, I just installed ImageMagick, backed up my directories, then ran the following command which finds all the 1MB+ *.jpg files within the uploads directory, then resizes them to a reasonable dimension (800xwhatever)

Chrissy is a Cloud and Datacenter Management & Data Platform MVP who has worked in IT for over 20 years. She is the creator of the popular SQL PowerShell module dbatools, and holds a number of certifications, including those relating to SQL Server, Linux, SharePoint and network security. You can follow her on Twitter at @cl.

Posted in Linux

Leave a Reply

Your email address will not be published. Required fields are marked *

*