Created
July 31, 2015 12:46
-
-
Save pkqk/0bcdd41ed39c9933af7d to your computer and use it in GitHub Desktop.
ODI labs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
image="$1" | |
output=${2:-test.png} | |
gravity=${3:-Center} | |
convert "${image}" -resize 500x200^ -gravity "${gravity}" -crop 500x200+0+0 "${output}" | |
composite odi-mask.png "${output}" "${output}" |
convert: unable to load module `/usr/local/Cellar/imagemagick/6.9.1-4/lib/ImageMagick//modules-Q16/coders/jpeg.la': file not found @ error/module.c/OpenModule/1282.
convert: no decode delegate for this image format `JPEG' @ error/constitute.c/ReadImage/501.
What even is this
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Well that didn't work. My ImageMagick build must be from an inauspicious day.