Skip to content

Instantly share code, notes, and snippets.

@pkqk
Created July 31, 2015 12:46
Show Gist options
  • Save pkqk/0bcdd41ed39c9933af7d to your computer and use it in GitHub Desktop.
Save pkqk/0bcdd41ed39c9933af7d to your computer and use it in GitHub Desktop.
ODI labs
#!/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}"
@pikesley
Copy link

Well that didn't work. My ImageMagick build must be from an inauspicious day.

@pikesley
Copy link

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