I am having issues with the page speed of my site (Wordpress / AVADA theme), and the majority of the issues are down to images not being optimised. I have done a bit of research and going to use Image Magick.
Here is a report from GT Metrix:
I have this script for converting my images:
convert /Users/james/Desktop/image-magick/santorini.jpg -sampling-factor 4:2:0 -strip -quality 75 -resize 700x466! -interlace JPEG -colorspace RGB -background white -flatten /Users/james/Desktop/image-magick/final/santorini-opt.jpg
However I want to convert bulk images from one folder (input) to another (output) then add a _output at the end of each image?
At the moment the script does one image at a time with the same name, which isn’t ideal.
Any help on how I can change the above script to do this would be great. I am hoping once I replace my images with these my page speed will increase and stop complaining about the images!