fix: precache for images with alpha

This commit is contained in:
Vikdos 2024-08-04 17:53:04 +02:00
parent d2ebadb631
commit 78bdd66b53

View file

@ -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());
}