Exception: DynamicImage::Errors::InvalidSizeOptions

Inherits:
Error
  • Object
show all
Defined in:
lib/dynamic_image/errors.rb

Overview

Raised when a size can't be rendered. Cropping was requested without both dimensions, as in size: "400x", crop: true — there is no way to crop to an exact size when one of them is unknown — or the size is zero on both axes, as "0x0" is, and constrains nothing, or the size works out to less than a pixel, as "1x1" does against a very wide image.