mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-13 22:21:59 +00:00
An <image> whose EXIF orientation or TIFF Orientation tag turns or flips its pixels, linked or as a data URL, is turned before usvg reads it: the pixels are stored as they are shown, the width and height swap, and the box fits the turned image under preserveAspectRatio, as CSS image-orientation: from-image describes. A turned CMYK JPEG or TIFF keeps its inks as a CMYK TIFF, as does a CMYK TIFF that is not turned. - Data URLs of type image/tiff, and untyped TIFF bytes, are read. - TIFFs with extra channels, CCITT Group 3 TIFFs and planar CMYK TIFFs are read as Open and Place read them. - Converted images decode within the decode allowance, and a TIFF that claims more strips or tiles than the decoder can count is refused before any decoder opens it. - exif_orientation moves to vectorcraft-doc so Open/Place and SVG import share it. Tests: crates/svg/tests/it/image_orientation.rs.