Closed valpackett closed 3 years ago
[...] What do you think?
Sounds good!
Ideally, there should be an option to not use image at all and just provide raw pixel data. (And with explicit gpu memory management instead of a magical cache :D)
We will eventually move Image
and Svg
to iced_graphics
. Exposing internals of specific renderers is also something I have in mind, as it will help with some use cases discussed in #32. We are not ready to write code for this yet, however!
The
image
crate with default options is the absolute leader in code size:I don't need to support
ico
,bmp
,tga
,hdr
,dxt
,dds
,farbfeld
and so on in a program that would only ever decode PNGs :)It's pretty straightforward to add
but for backwards compat, the
image
feature would have to enable some reasonable default set of formats.Looks like this can be accomplished using cargo's dependency rename thing (e.g.
image = { … package = "image_rs" }
). What do you think?Ideally, there should be an option to not use
image
at all and just provide raw pixel data. (And with explicit gpu memory management instead of a magical cache :D)