Module: DynamicImage::ImageProcessor::Frames
- Included in:
- DynamicImage::ImageProcessor
- Defined in:
- lib/dynamic_image/image_processor/frames.rb
Instance Method Summary collapse
-
#frame(index) ⇒ Object
Extracts a single frame from a multi-frame image.
-
#frame_count ⇒ Object
Returns the number of frames.
Instance Method Details
#frame(index) ⇒ Object
Extracts a single frame from a multi-frame image.
7 8 9 |
# File 'lib/dynamic_image/image_processor/frames.rb', line 7 def frame(index) apply extract_frame(index) end |
#frame_count ⇒ Object
Returns the number of frames.
12 13 14 |
# File 'lib/dynamic_image/image_processor/frames.rb', line 12 def frame_count image.get("height") / size.y end |