From 842be3687e314d662b773d7ca4ff1f5279d22a9e Mon Sep 17 00:00:00 2001 From: Himanshu Singh Date: Fri, 19 Jun 2026 12:34:59 -0400 Subject: [PATCH] Add 'image/bmp' case to BMP image processing switch Add 'image/bmp' case to BMP image processing switch The `processBmp()` handler already supported various BMP MIME types (like `image/ms-bmp` and `image/x-bitmap`), but was missing the standard `image/bmp` identifier. Added the missing case condition. --- src/Intervention/Image/AbstractEncoder.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Intervention/Image/AbstractEncoder.php b/src/Intervention/Image/AbstractEncoder.php index c25f8bffd..6239756c4 100644 --- a/src/Intervention/Image/AbstractEncoder.php +++ b/src/Intervention/Image/AbstractEncoder.php @@ -157,6 +157,7 @@ public function process(Image $image, $format = null, $quality = null) case 'x-win-bitmap': case 'x-windows-bmp': case 'x-xbitmap': + case 'image/bmp': case 'image/ms-bmp': case 'image/x-bitmap': case 'image/x-bmp':