Module: Imogen::AutoCrop
- Defined in:
- lib/imogen/auto_crop.rb
Class Method Summary collapse
Class Method Details
.convert(img, dest_path, scale = 768, opts = {}) ⇒ Object
3 4 5 6 7 |
# File 'lib/imogen/auto_crop.rb', line 3 def self.convert(img, dest_path, scale=768, opts = {}) Imogen::Iiif::Region::Featured.convert(img, scale, opts) do |smartcrop| smartcrop.write_to_file(dest_path, background: [255, 255, 255]) end end |