Remove some default features of image. (#39567)

Not all the features are needed in a browser for image, so we disable
less used image formats to save on binary size.

Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>

Part of addressing: https://github.com/servo/servo/issues/38966

Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
This commit is contained in:
Narfinger 2025-09-29 19:13:59 +02:00 committed by GitHub
parent fef56fcc47
commit 9a4614e835
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 48 deletions

View file

@ -83,7 +83,7 @@ hyper-util = { version = "0.1", features = ["client-legacy", "http2", "tokio"] }
hyper_serde = { path = "components/hyper_serde" }
icu_locid = "1.5.0"
icu_segmenter = "1.5.0"
image = "0.25"
image = { version = "0.25", default-features = false, features = ["avif", "rayon", "bmp", "gif", "ico", "jpeg", "png", "webp"] }
imsz = "0.2"
indexmap = { version = "2.11.4", features = ["std"] }
ipc-channel = "0.20.2"