1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00
Files
egui/crates
lucasmerlin 90b83c780e eframe: gate web clipboard image copy behind web_clipboard_image feature
The wasm path of `set_clipboard_image` is the only consumer of the
`image` crate inside eframe; `image`'s decoders / color-management code
add ~600 KB compressed to a wasm bundle even when only `png` is
requested (image-webp / moxcms / pxfm get pulled in regardless).

Make the dep optional behind a new `web_clipboard_image` feature
(default-on, so this is source-compatible for everyone except those who
explicitly want the smaller bundle). Apps that opt out get a
`log::warn!` if a CopyImage command ever fires.
2026-05-08 05:37:40 +02:00
..