Skip to main content

Module asset

Module asset 

Source
Expand description

Images that belong to a book, referenced by Block::Image::asset.

An asset is its bytes plus what the bytes say about themselves (format, pixel size, stored DPI). The metadata is always derived from the bytes, never stored next to them, so it cannot go stale: a .kernsetzer file holds only assets/<id>.

Structs§

Asset
An image file, e.g. assets/image1.png in a project.

Enums§

ImageFormat
What kind of image a file is, judged by content, not extension.