Compat: %i[] is not available on Ruby 1.9

This commit is contained in:
Stefano Verna 2021-03-03 12:37:13 +01:00
parent f2efc8c6c9
commit cd3ee0a624

View File

@ -89,7 +89,7 @@ class FastImage
LocalFileChunkSize = 256 unless const_defined?(:LocalFileChunkSize)
SUPPORTED_IMAGE_TYPES = %i[bmp gif jpeg png tiff psd heic heif webp svg svg ico cur].freeze
SUPPORTED_IMAGE_TYPES = [:bmp, :gif, :jpeg, :png, :tiff, :psd, :heic, :heif, :webp, :svg, :ico, :cur].freeze
# Returns an array containing the width and height of the image.
# It will return nil if the image could not be fetched, or if the image type was not recognised.