egui/crates/egui_extras/src/loaders
Aely 7cb8187ac8
Support RGB WebP images (#5586)
Current WebP loader assumes all WebP images to be RGBA, which is the
case if the image is animated (that's what `image` crate assumes at
least). Static images can instead choose to exclude its alpha channel,
though it seems to be more of a default choice to include it, even if
it's not being utilized. Currently, loading a static RGB WebP image will
cause a panic when `ColorImage::from_rgba_unmultiplied` gets called in
the loader
```
thread 'main' panicked at /home/aely/.cargo/git/checkouts/egui-226fc7cdd51201c1/f87219d/crates/epaint/src/image.rs:97:9:
assertion `left == right` failed
  left: 29184
 right: 21888
```
2025-01-07 08:35:58 +01:00
..
ehttp_loader.rs Do no use the ahash reimport (#4504) 2024-05-27 16:24:50 +02:00
file_loader.rs `egui_extras`: Fix file mime from path (wrong feature name) (#4933) 2024-08-26 11:24:08 +02:00
gif_loader.rs Animated WebP support (#5470) 2024-12-29 11:46:08 +01:00
image_loader.rs Make image extension lowercase before checking if it is supported (#5501) 2024-12-28 16:01:30 +01:00
svg_loader.rs Avoid allocations for loader cache lookup (#5584) 2025-01-06 10:03:33 +01:00
webp_loader.rs Support RGB WebP images (#5586) 2025-01-07 08:35:58 +01:00