forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 58b009bb899650af1bbdab9d581dc768acc474fbFiltered to shims/image/src/gpui.rsClear filter

2026-08-26

feat(image-shim): the gpui-only surface, behind a cargo featureAhmet Kaan Gümüş · c6f0f87
feat(image-shim): the gpui-only surface, behind a cargo feature

gpui consumes half an image crate this shim never needed: Frame, Delay,
AnimationDecoder, GifDecoder, WebPDecoder, guess_format,
load_from_memory_with_format, ImageBuffer, and the Gif/Bmp/Tiff format
names. None of it belongs to still-image decoding, so it lives behind a
`gpui` feature the way chrono keeps its serde impls behind one -- a build
that does not draw windows compiles none of it, and the default surface is
unchanged.

Served by ec_image: the animation paths go through decode_animation, and
WebPDecoder::has_animation answers from webp::is_animated.
set_background_color accepts only a fully transparent colour, which is
what gpui asks for and what the frames are composited onto.