9145af6b3e
* Move image loading code used by get_image_metadata from templates to imageproc * resize_image: Compute image resize op beforehand and return metadata to caller * get_image_metdata: Use a serializable response struct * imageproc: Add integration tests * imageproc: Assume webp is lossy * get_image_metadata: Use webp crate for decoding WebP, image is still not very good at it * imageproc: Test read_image_dimensions in integration tests * imageproc: Rename read_image_dimensions() as read_image_metadata() * imageproc: Fix a regression in hash computation * imageproc: Don't hardcode hashes in integration tests, pattern match them instead * imageproc: Style fixes * imageproc: Fix integration tests on Windows (hopefully)
25 lines
458 B
TOML
25 lines
458 B
TOML
[package]
|
|
name = "imageproc"
|
|
version = "0.1.0"
|
|
authors = ["Vojtěch Král <vojtech@kral.hk>"]
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
lazy_static = "1"
|
|
regex = "1.0"
|
|
tera = "1"
|
|
image = "0.23"
|
|
rayon = "1"
|
|
webp = "0.1.1"
|
|
serde = { version = "1", features = ["derive"] }
|
|
svg_metadata = "0.4.1"
|
|
|
|
errors = { path = "../errors" }
|
|
utils = { path = "../utils" }
|
|
config = { path = "../config" }
|
|
|
|
[dev-dependencies]
|
|
# TODO: prune
|
|
serde_json = "1"
|
|
site = { path = "../site" }
|