class Alchemy::Dragonfly::Processors::Thumbnail
Public Instance Methods
args_for_geometry(geometry)
click to toggle source
due to a missing ImageMagick parameter animated GIFs were broken with the default Dragonfly
Thumb processor
Calls superclass method
# File lib/alchemy/dragonfly/processors/thumbnail.rb, line 18 def args_for_geometry(geometry) # resize all frames in a GIF # @link https://imagemagick.org/script/command-line-options.php#coalesce # @link https://imagemagick.org/script/command-line-options.php#deconstruct (@content&.mime_type == "image/gif") ? "-coalesce #{super} -deconstruct" : super end
call(content, geometry, opts = {})
click to toggle source
Calls superclass method
# File lib/alchemy/dragonfly/processors/thumbnail.rb, line 9 def call(content, geometry, opts = {}) # store content into an instance variable to use it in args_for_geometry - method @content = content super end