mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix: precache for images with alpha (#1414)
This commit is contained in:
parent
d2ebadb631
commit
516cd23635
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ impl Image {
|
||||||
}
|
}
|
||||||
|
|
||||||
img = Self::rotate(img, orientation);
|
img = Self::rotate(img, orientation);
|
||||||
if !matches!(img, DynamicImage::ImageRgb8(_) | DynamicImage::ImageRgba8(_)) {
|
if !matches!(img, DynamicImage::ImageRgb8(_)) {
|
||||||
img = DynamicImage::ImageRgb8(img.into_rgb8());
|
img = DynamicImage::ImageRgb8(img.into_rgb8());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue