Sha256: 78b8e43b5d65b10f6c5dfeaf30db1219cd97f1998721e58221dd5a595df28449
Contents?: true
Size: 403 Bytes
Versions: 4
Compression:
Stored size: 403 Bytes
Contents
# This is a hook into Dragonfly's ImageMagick processor class # It makes sure quality is 100 for thumbnail generation require 'dragonfly' module Dragonfly module ImageMagick class Processor 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
4 entries across 4 versions & 1 rubygems