From 15aa0e031593188046ace21e3e53ce4de5a7dd04 Mon Sep 17 00:00:00 2001 From: loks0n <22452787+loks0n@users.noreply.github.com> Date: Tue, 21 Jan 2025 11:09:16 +0000 Subject: [PATCH 1/2] feat: enable heic --- app/config/storage/mimes.php | 103 +++++++++++++++++---------------- app/config/storage/outputs.php | 19 +++--- 2 files changed, 62 insertions(+), 60 deletions(-) diff --git a/app/config/storage/mimes.php b/app/config/storage/mimes.php index 26aaf8e1ff8..5c1752ca51c 100644 --- a/app/config/storage/mimes.php +++ b/app/config/storage/mimes.php @@ -1,70 +1,71 @@ 'image/jpeg', - 'jpeg' => 'image/jpeg', - 'gif' => 'image/gif', - 'png' => 'image/png', - 'webp' => 'image/webp', - // 'heic' => 'image/heic', - // 'heics' => 'image/heic', - 'avif' => 'image/avif' +return [ + // Accepted outputs files + "jpg" => "image/jpeg", + "jpeg" => "image/jpeg", + "gif" => "image/gif", + "png" => "image/png", + "webp" => "image/webp", + "heic" => "image/heic", + "heics" => "image/heic", + "avif" => "image/avif", ]; From bc3ac237bef39081aa58f43fdf62a5fb60155908 Mon Sep 17 00:00:00 2001 From: loks0n <22452787+loks0n@users.noreply.github.com> Date: Tue, 21 Jan 2025 18:06:20 +0000 Subject: [PATCH 2/2] fix: add heic input/output --- app/config/storage/inputs.php | 12 +++++++----- app/config/storage/outputs.php | 1 - 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/config/storage/inputs.php b/app/config/storage/inputs.php index 3b832692615..4532279b311 100644 --- a/app/config/storage/inputs.php +++ b/app/config/storage/inputs.php @@ -1,8 +1,10 @@ 'image/jpeg', - 'jpeg' => 'image/jpeg', - 'gif' => 'image/gif', - 'png' => 'image/png', +return [ + // Accepted inputs files + "jpg" => "image/jpeg", + "jpeg" => "image/jpeg", + "gif" => "image/gif", + "png" => "image/png", + "heic" => "image/heic", ]; diff --git a/app/config/storage/outputs.php b/app/config/storage/outputs.php index e25121838e6..49548dda507 100644 --- a/app/config/storage/outputs.php +++ b/app/config/storage/outputs.php @@ -8,6 +8,5 @@ "png" => "image/png", "webp" => "image/webp", "heic" => "image/heic", - "heics" => "image/heic", "avif" => "image/avif", ]; pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy