Class: TileUp::ImageProcessors::MiniMagick
- Inherits:
-
TileUp::ImageProcessor
- Object
- TileUp::ImageProcessor
- TileUp::ImageProcessors::MiniMagick
- Defined in:
- lib/tileup/image_processors/mini_magick.rb
Instance Attribute Summary
Attributes inherited from TileUp::ImageProcessor
Instance Method Summary collapse
- #height(image) ⇒ Object
-
#initialize(logger) ⇒ MiniMagick
constructor
A new instance of MiniMagick.
- #width(image) ⇒ Object
Methods inherited from TileUp::ImageProcessor
build, #crop_and_save, #open, #scale
Constructor Details
#initialize(logger) ⇒ MiniMagick
Returns a new instance of MiniMagick.
5 6 7 8 |
# File 'lib/tileup/image_processors/mini_magick.rb', line 5 def initialize logger require 'mini_magick' super(logger) end |
Instance Method Details
#height(image) ⇒ Object
14 15 16 |
# File 'lib/tileup/image_processors/mini_magick.rb', line 14 def height image image.height end |
#width(image) ⇒ Object
10 11 12 |
# File 'lib/tileup/image_processors/mini_magick.rb', line 10 def width image image.width end |