FIX: Add gif to list of allowed decoders

This commit is contained in:
Sam 2018-08-15 13:56:57 +10:00
parent cf788582cc
commit 33b5cc6bbd

View File

@ -118,7 +118,7 @@ class OptimizedImage < ActiveRecord::Base
end
end
IM_DECODERS ||= /\A(jpe?g|png|tiff?|bmp|ico)\z/i
IM_DECODERS ||= /\A(jpe?g|png|tiff?|bmp|ico|gif)\z/i
def self.prepend_decoder!(path)
extension = File.extname(path)[1..-1]