mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Add support for AVIF images (#21680)
This commit is contained in:
committed by
GitHub
parent
f3f841a018
commit
baa5389a23
@@ -175,7 +175,7 @@ class OptimizedImage < ActiveRecord::Base
|
||||
paths.each { |path| raise Discourse::InvalidAccess unless safe_path?(path) }
|
||||
end
|
||||
|
||||
IM_DECODERS ||= /\A(jpe?g|png|ico|gif|webp)\z/i
|
||||
IM_DECODERS ||= /\A(jpe?g|png|ico|gif|webp|avif)\z/i
|
||||
|
||||
def self.prepend_decoder!(path, ext_path = nil, opts = nil)
|
||||
opts ||= {}
|
||||
|
||||
Reference in New Issue
Block a user