Class: Imagga::ImageCrop

Inherits:
ImageInfoBase show all
Defined in:
lib/imagga/image.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ImageInfoBase

#initialize

Constructor Details

This class inherits a constructor from Imagga::ImageInfoBase

Class Method Details

.fieldsObject



115
116
117
# File 'lib/imagga/image.rb', line 115

def self.fields
  %w(target_width target_height x1 y1 x2 y2)
end

Instance Method Details

#infoObject



127
128
129
# File 'lib/imagga/image.rb', line 127

def info
  "target: (%i,%i), crop: (%i, %i) to (%i, %i)" % [target_width, target_height, x1, y1, x2, y2]
end