Skip to content

Instantly share code, notes, and snippets.

@smerrill
Created September 5, 2011 00:06
Show Gist options
  • Save smerrill/1193749 to your computer and use it in GitHub Desktop.
Save smerrill/1193749 to your computer and use it in GitHub Desktop.
GraphicsMagick compatibility shim for use with Drupal
#!/bin/bash
# Save this file as 'convert' and point Drupal at it at /admin/config/media/image-toolkit
[[ $1 == 'version' ]] && {
gm $1
} || {
gm convert $@
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment