From 5d25265e5c92de1330aad70252bae8618803f887 Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Fri, 16 May 2025 14:46:24 -0700 Subject: [PATCH] fix(storage): do not preview gif input/output Processing a gif file can consume large amounts of memory causing the container to crash. As a safety precaution, don't output to gif either. Any attempt to output to gif will fallback to jpg. --- app/config/storage/inputs.php | 1 - app/config/storage/outputs.php | 1 - 2 files changed, 2 deletions(-) diff --git a/app/config/storage/inputs.php b/app/config/storage/inputs.php index 713801cd7c..edcf667d86 100644 --- a/app/config/storage/inputs.php +++ b/app/config/storage/inputs.php @@ -4,7 +4,6 @@ return [ // Accepted inputs files "jpg" => "image/jpeg", "jpeg" => "image/jpeg", - "gif" => "image/gif", "png" => "image/png", "heic" => "image/heic", "webp" => "image/webp", diff --git a/app/config/storage/outputs.php b/app/config/storage/outputs.php index 49548dda50..519ff825fe 100644 --- a/app/config/storage/outputs.php +++ b/app/config/storage/outputs.php @@ -4,7 +4,6 @@ return [ // Accepted outputs files "jpg" => "image/jpeg", "jpeg" => "image/jpeg", - "gif" => "image/gif", "png" => "image/png", "webp" => "image/webp", "heic" => "image/heic",