Class: Utopia::Tags::Gallery::Processes::PhotoThumbnail
- Defined in:
- lib/utopia/tags/gallery.rb
Instance Method Summary collapse
Methods inherited from Thumbnail
Constructor Details
This class inherits a constructor from Utopia::Tags::Gallery::Processes::Thumbnail
Instance Method Details
#call(img) ⇒ Object
66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/utopia/tags/gallery.rb', line 66 def call(img) img = super(img) shadow = img.dup shadow = shadow.colorize(1, 1, 1, '#999999ff') shadow.background_color = 'transparent' shadow.border!(10, 10, '#99999900') shadow = shadow.gaussian_blur_channel(5, 5, Magick::AlphaChannel) shadow.composite(img, 5, 5, Magick::OverCompositeOp) end |
#default_extension(path) ⇒ Object
80 81 82 |
# File 'lib/utopia/tags/gallery.rb', line 80 def default_extension(path) return "png" end |