From 054f5633212c1083aed76fee9e3b09283b45ff83 Mon Sep 17 00:00:00 2001 From: Stephen Sykes Date: Mon, 1 Apr 2024 19:45:21 +0300 Subject: [PATCH] Update supported file list --- lib/fastimage.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fastimage.rb b/lib/fastimage.rb index f83514f..e2a2c7a 100644 --- a/lib/fastimage.rb +++ b/lib/fastimage.rb @@ -93,7 +93,7 @@ class BadImageURI < FastImageException # :nodoc: LocalFileChunkSize = 256 unless const_defined?(:LocalFileChunkSize) - SUPPORTED_IMAGE_TYPES = [:bmp, :gif, :jpeg, :png, :tiff, :psd, :heic, :heif, :webp, :svg, :ico, :cur].freeze + SUPPORTED_IMAGE_TYPES = [:bmp, :gif, :jpeg, :png, :tiff, :psd, :heic, :heif, :webp, :svg, :ico, :cur, :jxl].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. @@ -104,7 +104,7 @@ class BadImageURI < FastImageException # :nodoc: # If you wish FastImage to raise if it cannot size the image for any reason, then pass # :raise_on_failure => true in the options. # - # FastImage knows about GIF, JPEG, BMP, TIFF, ICO, CUR, PNG, PSD, SVG and WEBP files. + # FastImage knows about GIF, JPEG, BMP, TIFF, ICO, CUR, PNG, PSD, SVG, WEBP and JXL files. # # === Example #