Skip to content

Commit 5c57c6c

Browse files
committed
add support for jfif files
1 parent 033f402 commit 5c57c6c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

config/file-storage.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
'formats' => [
1717
'png' => 'jpg',
1818
'webp' => 'jpg',
19+
'jfif' => 'jpg',
1920
'heic' => 'jpg',
2021
],
2122
],

src/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55

66
function is_image(?string $filename): bool
77
{
8-
return $filename && preg_match('/\.(webp|heic|jpg|jpeg|png)$/i', $filename);
8+
return $filename && preg_match('/\.(webp|heic|jfif|jpg|jpeg|png)$/i', $filename);
99
}

0 commit comments

Comments
 (0)