Module: Imgproxy::OptionsCasters::WatermarkSize
- Defined in:
- lib/imgproxy/options_casters/watermark_size.rb
Overview
Casts ‘watermark_size` processing option
Class Method Summary collapse
Class Method Details
.cast(raw) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/imgproxy/options_casters/watermark_size.rb', line 11 def self.cast(raw) return raw unless raw.is_a?(Hash) [ Imgproxy::OptionsCasters::Integer.cast(raw[:width]) || 0, Imgproxy::OptionsCasters::Integer.cast(raw[:height]) || 0, ] end |