-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add image format options to reduce code bloat #376
Comments
Sounds good!
We will eventually move |
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)The text was updated successfully, but these errors were encountered: