I want to batch convert / loop through all images within the folder "/input" and then optimise all the images and finally output them in the folder "/output".
How can I do something similar to this:
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
^ Currently with the above script, I have to run manually for every image, one at a time!
How can I do something similar using shell script to do it all for me in bulk?