mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
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.