mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-16 20:19:40 +00:00
The decoding File › Open, Place and the renderer share moves to vectorcraft-doc (decode.rs: decode_image, decoded_layout), and SVG import's images read through it: the size from the header against the allowance first, then the pixels as stored with the profile the file embeds (a TIFF's still read by the TIFF reader). 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.