Closed sorairolake closed 7 months ago
The API has changed, you need to call tree.calculate_bounding_boxes()
or tree.postprocess()
before rendering it.
Here is how resvg should be used: https://github.com/RazrFalcon/resvg/blob/master/crates/resvg/examples/minimal.rs
Since
resvg
v0.38.0 or later, an unexpected empty image is rendered when inputting the following SVG image.SVG image to input:
Expected output PNG image:
Actual output PNG image:
Code:
Cargo.toml: