Add FastImage::SUPPORTED_IMAGE_TYPES

Returns all the image formats FastImage is capable to recognize
This commit is contained in:
Stefano Verna 2021-03-02 16:41:11 +01:00
parent 58dcc3072f
commit 9baee6d1b3

View File

@ -89,6 +89,8 @@ 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
# 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.
#