Class: Teaas::Helper
- Inherits:
-
Object
- Object
- Teaas::Helper
- Defined in:
- lib/teaas/helper.rb
Class Method Summary collapse
Class Method Details
.animated_gif?(img) ⇒ Boolean
12 13 14 |
# File 'lib/teaas/helper.rb', line 12 def self.animated_gif?(img) img[0].format == "GIF" && img.length > 1 end |
.prepare_for_animation(img) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/teaas/helper.rb', line 3 def self.prepare_for_animation(img) new_img = img[0] new_img.dispose = Magick::BackgroundDispose new_img.format = "gif" new_img.background_color = "none" new_img end |