Skip to content

Instantly share code, notes, and snippets.

@soulcutter
Created March 25, 2013 21:52
Show Gist options
  • Save soulcutter/b3182af2db0357199040 to your computer and use it in GitHub Desktop.
Save soulcutter/b3182af2db0357199040 to your computer and use it in GitHub Desktop.
# ... other initialization stuff above here ...
Dragonfly[:images].processor.register(Watermark)
# optional, but gives you the ability to use watermark(opacity: 50)
# rather than process(:watermark, opacity: 50)
Dragonfly[:images].configure do |c|
c.job(:watermark) { |*args| process(:watermark, *args) }
end
@soulcutter
Copy link
Author

@luopio Yes, the API has changed since the writing of this gist. Thanks for sharing your version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment