Cargo Features

bevy_image has no features set by default.

[dependencies]
bevy_image = { version = "0.15.0-rc.2", features = ["basis-universal", "bmp", "dds", "exr", "ff", "gif", "hdr", "ktx2", "ico", "jpeg", "png", "pnm", "qoi", "tga", "tiff", "webp", "zlib", "zstd"] }
basis-universal

Image formats

Enables basis-universal

For transcoding of UASTC/ETC1S universal formats, and for .basis file support

Affects ktx2::get_transcoded_formats

bmp

Enables bmp of image

rendering

dds = ddsfile

Affects dds::dds_buffer_to_image, dds::dds_format_to_texture_format

exr

Enables exr of image

Affects exr_texture_loader::ExrTextureLoader, exr_texture_loader::ExrTextureLoaderSettings, exr_texture_loader::ExrTextureLoaderError

ff

Enables ff of image

gif

Enables gif of image

hdr

Enables hdr of image

ktx2

Enables ktx2

Affects ktx2::ktx2_buffer_to_image, ktx2::ktx2_get_texture_format, ktx2::ktx2_dfd_to_texture_format, ktx2::ktx2_format_to_texture_format

ico

Enables ico of image

jpeg

Enables jpeg of image

png

Enables png of image

pnm

Enables pnm of image

qoi

Enables qoi of image

tga

Enables tga of image

tiff

Enables tiff of image

webp

Enables webp of image

zlib = flate2

For ktx2 supercompression

zstd = ruzstd

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

ddsfile dds?
flate2 zlib?

Enables flate2

For ktx2 supercompression

ruzstd zstd?