mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-17 22:33:08 +00:00
Embedded and linked images read their pixels with decode_within: the size from the header against the allowance first (as samples and as RGBA, #1717), then the pixels as stored. map_rgb, sampling, coverage, link previews and checked_with_pixels all go through it. decoded_pixels_are_those_the_image_crate_read compares PNG, GIF, WebP, TIFF and BMP at each depth the image crate writes with its pixels, and JPEG within two steps, including the pixels checked_with_pixels hands on. The 11,586² allowance test is a compact PNG; craft-image-codecs refuses a GIF whose unbacked logical screen is past 256 MiB.
36 lines
1.1 KiB
TOML
36 lines
1.1 KiB
TOML
[package]
|
|
name = "vectorcraft-doc"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
description = "VectorCraft document model: artboards, layers, objects, appearance (pure data + serde)"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[features]
|
|
# `vectorcraft_doc::blend::spines_built` for other crates' tests (dev-dependencies only).
|
|
spine-count = []
|
|
|
|
[dependencies]
|
|
vectorcraft-geom = { workspace = true }
|
|
vectorcraft-color = { workspace = true }
|
|
kurbo = { workspace = true }
|
|
image = { workspace = true }
|
|
# Image headers (PNG and JPEG sizes, `pixels::header_size`) and CMYK JPEG inks (`cmyk`).
|
|
craft-image-codecs = { workspace = true }
|
|
tiff = { workspace = true }
|
|
# 1-bit TIFFs compressed with CCITT Group 3 (Compression 2 and 3).
|
|
craft-stream-codecs = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
chrono = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
flate2 = { workspace = true }
|
|
# The CMYK JPEG reader `cmyk` had before craft-image-codecs, kept as the reference its inks match.
|
|
zune-jpeg = { workspace = true }
|
|
jpeg-encoder = { workspace = true }
|
|
proptest = { workspace = true }
|