mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-16 20:19:40 +00:00
The renderer's image paint reads sizes from the header (vectorcraft-doc's header_size, craft-image-codecs' inspect_raster) and decodes through craft-image-codecs, the pixels as stored, for the formats it drew before (PNG, JPEG, GIF, WebP, TIFF and BMP). A test compares the pixels with the image crate's for each PNG color type and depth, palettes and 1-bit gray, GIF, WebP, TIFF, BMP and JPEG. The JPEG writer goes back to main's jpeg-encoder one: the craft-image-codecs version wrote a CMYK JPEG's resolution in a little-endian EXIF of another layout, failing the tests of main's #3084 fix. TIFF LZW strips stay on craft-stream-codecs, checked against weezl (now a dev-dependency): read back the same and never larger.