mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-16 22:34:43 +00:00
craft_image_codecs::probe_size only reads WebP, EXR and the GIF/BMP/TGA family; for PNG, JPEG and TIFF it returns Unsupported. The cutover used it for header sizes, so DXF export left every PNG out (cad tests), plugin objects lost PNG pixels, and EPS image-mask and SVG import fell back to decoding whole images to learn their size. vectorcraft_doc::header_size reads PNG's IHDR and a JPEG's frame through craft-image-codecs and other formats through the image crate's header readers, as main does, without decoding pixels. The SVG filter's JPEG size comes from jpeg_info instead of a full decode.