Class: TileUp::ImageProcessors::MiniMagick

Inherits:
TileUp::ImageProcessor show all
Defined in:
lib/tileup/image_processors/mini_magick.rb

Instance Attribute Summary

Attributes inherited from TileUp::ImageProcessor

#logger

Instance Method Summary collapse

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