You can compile this script into an application to make a droplet.
Automator and Shortcut scripts don't resize images as expected. Here is an applescript that uses the command line image tool sips that comes with macOS/Mac OS X to do exactly as it's told, preserving aspect ratio.
If you are unfamiliar with sips, I highly recommend looking into it if you do a lot of graphics work.
Replace '--resampleHeight' to '--resampleWidth' for width based resizing.
------------------------------------------------------------------------------------------------------------
on open filelist
repeat with i in fillets
do shell script "sips --resampleHeight 1080 " & quoted form of POSIX path of i
end repeat
end open
Automator and Shortcut scripts don't resize images as expected. Here is an applescript that uses the command line image tool sips that comes with macOS/Mac OS X to do exactly as it's told, preserving aspect ratio.
If you are unfamiliar with sips, I highly recommend looking into it if you do a lot of graphics work.
Replace '--resampleHeight' to '--resampleWidth' for width based resizing.
------------------------------------------------------------------------------------------------------------
on open filelist
repeat with i in fillets
do shell script "sips --resampleHeight 1080 " & quoted form of POSIX path of i
end repeat
end open