mirror of
https://github.com/storytold/figcraft.git
synced 2026-10-31 05:46:46 -06:00
Images are converted once, when decoded, from their own colour space into the file's (sRGB or Display P3): ICC profiles in PNG, JPG, WebP and TIFF (matrix/curve and table profiles, RGB or grey, run by moxcms, which the image crate already builds) and a PNG's sRGB, gAMA and cHRM chunks. Images without a usable profile (none, CMYK, damaged, over 4 MB) are taken as sRGB as before. The image fill's details show the source profile and image.place reports it as imageProfile.
26 lines
749 B
TOML
26 lines
749 B
TOML
[package]
|
|
name = "figcraft-render"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
description = "FigCraft renderer: the scene graph to pixels on tiny-skia (fills, gradients, images, aligned strokes, shadows, blurs, masks, blend modes, text)"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
figcraft-geom = { workspace = true }
|
|
figcraft-color = { workspace = true }
|
|
figcraft-doc = { workspace = true }
|
|
figcraft-text = { workspace = true }
|
|
figcraft-pathops = { workspace = true }
|
|
tiny-skia = { workspace = true }
|
|
image = { workspace = true }
|
|
moxcms = { workspace = true }
|
|
png = { workspace = true }
|
|
crc32fast = { workspace = true }
|
|
log = { workspace = true }
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
rayon = "1"
|