Automator shrink images larger than X
I have created an automator task compiled from various resources I found online to optimize usage for our website. It performs the following actions:
- All selected images get copied to an export folder in place
- All images get -web added to the filename
- various unsafe characters get replaced
- The imagetype gets changed to JPEG
- It is run through ImageOptim for compression.
This works great, however I still miss one optimisation. Sometimes images are 4000 pixels or larger, which is unnecessary for web. I would really like to be able to shrink (resize) all images that are over 1200 pixels in either width or height dimension proportionally. I am aware of the feature in automator, however to my knowledge this would also enlarge images smaller than 1200 pixels which is unwanted.
I am very curious if anyone has found a way to fix this issue.
Thank you for the help!
Martijn