Skip to content

Commit

Permalink
Merge pull request #2106 from tvdeyen/dragonfly-1.4.0
Browse files Browse the repository at this point in the history
Allow flatten as argument for Dragonfly encode
  • Loading branch information
tvdeyen authored May 24, 2021
2 parents 65f29b4 + 2881f33 commit ba5b636
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/initializers/dragonfly.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@
ActiveRecord::Base.extend Dragonfly::Model
ActiveRecord::Base.extend Dragonfly::Model::Validations
end

# Dragonfly 1.4.0 only allows `quality` as argument to `encode`
Dragonfly::ImageMagick::Processors::Encode::WHITELISTED_ARGS << "flatten"

0 comments on commit ba5b636

Please sign in to comment.