[package] authors = ["Kornel "] description = "Load PNG or JPEG with color profile support" keywords = ["load_image"] license = "GPL-3.0+" name = "load_image" version = "3.2.1" edition = "2021" include = ["src/*.rs", "src/*.icc", "Cargo.toml", "COPYING", "README.md"] readme = "README.md" homepage = "https://imageoptim.com/api" categories = ["multimedia::images"] rust-version = "1.72" repository = "https://gitlab.com/kornelski/load_image" [dependencies] imgref = "1.10.1" lcms2 = "6.1.0" lodepng = "3.10.7" rgb = { version = "0.8.50", default-features = false, features = ["bytemuck"] } rexif = { version = "0.7.4", optional = true } mozjpeg = { version = "0.10", optional = true } aom-decode = { version = "0.2.10", optional = true, features = ["avif"] } libwebp = { version = "0.1.2", features = ["1_1"], optional = true } jpeg-decoder = { version = "0.3.1", optional = true } bytemuck = "1.16.3" quick-error = "2.0.1" [features] default = ["jpeg"] # 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"] # 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" }