mirror of
https://github.com/sdsykes/fastimage.git
synced 2025-09-20 00:01:59 -04:00
Compat: %i[] is not available on Ruby 1.9
This commit is contained in:
parent
f2efc8c6c9
commit
cd3ee0a624
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user