mirror of
https://github.com/sdsykes/fastimage.git
synced 2025-09-20 00:01:59 -04:00
Add FastImage::SUPPORTED_IMAGE_TYPES
Returns all the image formats FastImage is capable to recognize
This commit is contained in:
parent
58dcc3072f
commit
9baee6d1b3
@ -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.
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user