Cargo Features

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

The bevy_reflect feature is set by default whenever bevy_image is added without default-features = false somewhere in the dependency tree.

bevy_reflect default serialize?

Enables bevy_reflect and bevy_reflect of bevy_math

bevy_math:

Enable bevy_reflect (requires alloc)

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 ^0.3.0

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

serialize = bevy_reflect

Enables serde of bevy_utils and serialize of bevy_platform_support

bevy_platform_support:

Functionality

Adds serialization support through serde.

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?