Optimizing Images using command line
Submitted by system on Fri, 12/06/2019 - 17:28The images uploaded by users may not be of ideal size and may require compression to manage server space. There are some tools available for compressing JPG and PNG files.
Please note that the owner changes to the current username for the file after compression. Please remember to change ownership if required of the file or per folder post compression.
jpegoptim :
Optimize a jpg image with the same name
jpegoptim image.jpg
Optimize all jpg images in a folder