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