Method: DynamicImage::ImageProcessor#size
- Defined in:
- lib/dynamic_image/image_processor.rb
#size ⇒ Object
Returns the image size as a Vector2d.
63 64 65 66 67 68 69 70 |
# File 'lib/dynamic_image/image_processor.rb', line 63 def size Vector2d.new( image.get("width"), image.get( image.get_fields.include?("page-height") ? "page-height" : "height" ) ) end |