Module: DHashVips
- Defined in:
- lib/dhash-vips.rb
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.bw(image) ⇒ Object
6 7 8 |
# File 'lib/dhash-vips.rb', line 6 def self.bw image (image.has_alpha? ? image.flatten(background: 255) : image).colourspace("b-w")[0] end |