load_image 3.3.2

Load PNG or JPEG with color profile support
Documentation
[package]
authors = ["Kornel <pornel@pornel.net>"]
description = "Load PNG or JPEG with color profile support"
keywords = ["load_image"]
license = "BSD-3-Clause"
name = "load_image"
version = "3.3.2"
edition = "2021"
include = ["src/*.rs", "src/*.icc", "Cargo.toml", "COPYING", "LICENSE", "README.md"]
readme = "README.md"
repository = "https://codeberg.org/kornelski/load_image"
homepage = "https://imageoptim.com/api"
categories = ["multimedia::images"]
rust-version = "1.83"

[dependencies]
imgref = "1.11.0"
lcms2 = "6.1.1"
lodepng = { version = "3.12.1", default-features = false, features = ["rust_backend"] }
rgb = { version = "0.8.52", default-features = false, features = ["bytemuck"] }
rexif = { version = "0.7.5", optional = true }
mozjpeg = { version = "0.10", optional = true }
aom-decode = { version = "0.2.13", optional = true, features = ["avif"] }
libwebp = { version = "0.1.2", features = ["1_1"], optional = true }
jpeg-decoder = { version = "0.3.2", optional = true }
bytemuck = "1.23.2"
quick-error = "2.0.1"

[features]
default = ["jpeg", "zlibrs"]
# Instead of a Rust-native JPEG decoder, use MozJPEG. It might be faster. It's in C.
mozjpeg = ["dep:mozjpeg", "dep:rexif"]
jpeg = ["dep:jpeg-decoder", "dep:rexif"]
# Include file creation/modification date in metadata
stat = []
# Support reading of AVIF files. Uses a relatively heavy AOM decoder.
avif = ["dep:aom-decode"]
# Support reading of WebP images. By default, it links to system's libwebp.
webp = ["dep:libwebp"]
# Link libwebp statically for redistrbutable binaries.
webp-static = ["webp", "libwebp?/static"]
# Link lcms2 statically for redistrbutable binaries.
lcms2-static = ["lcms2/static"]

# Use zlib-rs for PNG decoding
zlibrs = ["lodepng/zlibrs"]

# Use cf-zlib for PNG decoding
cfzlib = ["lodepng/cfzlib"]

# Link everything statically
static = ["lcms2-static", "libwebp?/static"]

[lib]
doctest = false
name = "load_image"

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
rustdoc-args = ["--generate-link-to-definition"]

[badges]
maintenance = { status = "actively-developed" }