Skip to content

Instantly share code, notes, and snippets.

@AlexRezit
Last active December 11, 2015 08:08
Show Gist options
  • Save AlexRezit/4570842 to your computer and use it in GitHub Desktop.
Save AlexRezit/4570842 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo Processing file: $1;
sips -Z $(($(sips -g pixelHeight "$1" | cut -s -d ':' -f 2 | cut -c 2-) / 2)) "$1" --out "resized_$1" &> /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment