From 78bdd66b5311fcef309b3072d6fd3b335b1b5dc6 Mon Sep 17 00:00:00 2001 From: Vikdos Date: Sun, 4 Aug 2024 17:53:04 +0200 Subject: [PATCH] fix: precache for images with alpha --- yazi-adapter/src/image.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yazi-adapter/src/image.rs b/yazi-adapter/src/image.rs index 3979cc46..4535087c 100644 --- a/yazi-adapter/src/image.rs +++ b/yazi-adapter/src/image.rs @@ -31,7 +31,7 @@ impl Image { } img = Self::rotate(img, orientation); - if !matches!(img, DynamicImage::ImageRgb8(_) | DynamicImage::ImageRgba8(_)) { + if !matches!(img, DynamicImage::ImageRgb8(_)) { img = DynamicImage::ImageRgb8(img.into_rgb8()); }