Trying to pass images to shell command using automator

I found a following solution that works for me:

for f in "$@"; do
  sips -z 750 1334 "$f"
done

You're looking for $@:

sips -z 750 1334 "$@"