-
-
Save soulcutter/b3182af2db0357199040 to your computer and use it in GitHub Desktop.
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
# ... 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I couldn't get this to work on Dragonfly 1.0.10 and after some digging I ended up coding the following solution that only requires an initializer file: