linebender / resvg

An SVG rendering library.
Apache License 2.0
2.84k stars 229 forks source link

Try to resize large JPEGs during decoding #781

Open RazrFalcon opened 5 months ago

RazrFalcon commented 5 months ago

JPEG supports decoding an image at a smaller resolution, which is faster and uses less memory. This can be useful when we're trying to decode a very large JPEG just to downscale it using tiny-skia anyway.