Class: DragonflyMozjpeg::Plugin
- Inherits:
-
Object
- Object
- DragonflyMozjpeg::Plugin
- Defined in:
- lib/dragonfly_mozjpeg/plugin.rb
Instance Method Summary collapse
Instance Method Details
#call(app, options = {}) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/dragonfly_mozjpeg/plugin.rb', line 8 def call(app, = {}) app.env[:cjpeg] = Utils.check_binary([:cjpeg], 'cjpeg') app.env[:jpegtran] = Utils.check_binary([:jpegtran], 'jpegtran') app.add_processor :lossy, Processors::Lossy.new app.add_processor :lossless, Processors::Lossless.new end |