Sha256: 81257fb84e7d3b22d8cceead684391bd68811bf4ea75db41f4ad3090b0a0ecf0
Contents?: true
Size: 391 Bytes
Versions: 3
Compression:
Stored size: 391 Bytes
Contents
# This is a hook into Dragonfly's ImageMagick processor class # It makes sure quality is 100 for thumbnail generation module Dragonfly module Processing class ImageMagickProcessor def convert(temp_object, args='', format=nil) args = "#{args} -quality 100" unless args.blank? format ? [super, {:format => format.to_sym}] : super end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
moxify-0.1.7 | lib/moxify/dragonfly_quality_hook.rb |
moxify-0.1.5 | lib/moxify/dragonfly_quality_hook.rb |
moxify-0.1.3 | lib/moxify/dragonfly_quality_hook.rb |