fix: precache for images with alpha (#1414)

This commit is contained in:
Vikdos 2024-08-05 03:53:12 +02:00 committed by GitHub
parent d2ebadb631
commit 516cd23635
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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