How come it doesn't run with Shortcuts? Any error message? I migrated all my context menu scripts from Automator to Shortcuts and have no problem
Step 1 - Receive Images input from Quick Actions
Step 2 - Run same script as above, Shell: zsh, Input: <blank, Shortcuts Input?>, Pass Input: As args
Step 3 - Show Shell Script Result