From 516cd23635f5bf7db73056cd4cfe39fa3d183143 Mon Sep 17 00:00:00 2001 From: Vikdos Date: Mon, 5 Aug 2024 03:53:12 +0200 Subject: [PATCH] fix: precache for images with alpha (#1414) --- 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()); }