Module: ImageProcessing::Rszr
- Extended by:
- Chainable
- Defined in:
- lib/rszr/image_processing.rb
Defined Under Namespace
Classes: Processor
Class Method Summary collapse
-
.valid_image?(file) ⇒ Boolean
Returns whether the given image file is processable.
Class Method Details
.valid_image?(file) ⇒ Boolean
Returns whether the given image file is processable.
11 12 13 14 15 16 |
# File 'lib/rszr/image_processing.rb', line 11 def valid_image?(file) ::Rszr::Image.load(file).width true rescue ::Rszr::Error false end |