mirror of
https://github.com/sxyazi/yazi.git
synced 2024-09-11 18:38:19 +03:00
fix: precache for images with alpha (#1414)
This commit is contained in:
parent
d2ebadb631
commit
516cd23635
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user