class Teaas::Helper
Public Class Methods
animated_gif?(img)
click to toggle source
# File lib/teaas/helper.rb, line 12 def self.animated_gif?(img) img[0].format == "GIF" && img.length > 1 end
prepare_for_animation(img)
click to toggle source
# 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