Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ num-traits = { version = "0.2.0" }
# Optional dependencies
color_quant = { version = "1.1", optional = true }
dav1d = { version = "0.10.3", optional = true }
dds = { version = "0.1", optional = true }
exr = { version = "1.5.0", optional = true }
gif = { version = "0.13.1", optional = true }
image-webp = { version = "0.2.0", optional = true }
Expand Down Expand Up @@ -70,7 +71,7 @@ default = ["rayon", "default-formats"]
default-formats = ["avif", "bmp", "dds", "exr", "ff", "gif", "hdr", "ico", "jpeg", "png", "pnm", "qoi", "tga", "tiff", "webp"]
avif = ["dep:ravif", "dep:rgb"]
bmp = []
dds = []
dds = ["dep:dds"]
exr = ["dep:exr"]
ff = [] # Farbfeld image format
gif = ["dep:gif", "dep:color_quant"]
Expand All @@ -85,7 +86,7 @@ tiff = ["dep:tiff"]
webp = ["dep:image-webp"]

# Other features
rayon = ["dep:rayon", "ravif?/threading"] # Enables multi-threading
rayon = ["dep:rayon", "ravif?/threading", "dds?/rayon"] # Enables multi-threading
nasm = ["ravif?/asm"] # Enables use of nasm by rav1e (requires nasm to be installed)
color_quant = ["dep:color_quant"] # Enables color quantization
avif-native = ["dep:mp4parse", "dep:dav1d"] # Enable native dependency libdav1d
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ image format encoders and decoders.
| -------- | ----------------------------------------- | --------------------------------------- |
| AVIF | Yes \* | Yes (lossy only) |
| BMP | Yes | Yes |
| DDS | Yes | --- |
| DDS | Yes | Yes \*\* |
| Farbfeld | Yes | Yes |
| GIF | Yes | Yes |
| HDR | Yes | Yes |
Expand All @@ -61,6 +61,7 @@ image format encoders and decoders.
| WebP | Yes | Yes (lossless only) |

- \* Requires the `avif-native` feature, uses the libdav1d C library.
- \*\* See the documentation of the [`dds` crate](https://github.com/image-rs/image-dds) for a full list of supported formats.

## Image Types

Expand Down
Loading
Loading