Skip to content

Instantly share code, notes, and snippets.

@mauricerkelly
Last active August 18, 2016 19:53
Show Gist options
  • Save mauricerkelly/d976c7eb3dcbb047a26f to your computer and use it in GitHub Desktop.
Save mauricerkelly/d976c7eb3dcbb047a26f to your computer and use it in GitHub Desktop.
#!/usr/bin/env zsh
for fullfile in $*
do
if [[ -e $fullfile ]]; then
file=${fullfile%.*}
sips --deleteColorManagementProperties \
--matchTo "../ftp-mirror/PearsonScreenCapPrint.icc" \
--setProperty dpiHeight 72.000 \
--setProperty dpiWidth 72.000 \
--setProperty format tiff \
--setProperty formatOptions lzw \
$file.png --out $file.tiff
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment