resvg icon indicating copy to clipboard operation
resvg copied to clipboard

An SVG rendering library.

Results 114 resvg issues
Sort by recently updated
recently updated
newest added

I am using `usvg` (version 0.23.0) to calculate the bounding of an SVG to automatically adjust its `viewBox`; however, the image keeps being cut off: ![image](https://user-images.githubusercontent.com/18118053/181480858-33a7dd40-d682-44ff-ab48-5d9c018d0eaa.png) I have boiled down...

This modifies desire to paint strokes below fills without having to duplicate an element. [paint-order](https://www.w3.org/TR/SVG2/painting.html#PaintOrder) is a standard specification of svg2 as discussed [#422 ](https://github.com/RazrFalcon/resvg/issues/422)

resvg performs poorly on input files with many tens of thousands of individual paths. Attached are two files, slow.svg and fast.svg. slow.svg contains approximately 100k elements with some style and...

optimization

I'd like to have more control over fetching and decoding of images referenced in SVG files, in order to use existing decoders that I have, and to enforce size and...

I'm not particularly knowledgeable on this, just reporting what I saw ```pwsh ❯ resvg -w 128 -h 128 '.\GraphQL Logo (Rhodamine).svg' out.png Warning (in usvg::svgtree::parse:435): Failed to parse fill value:...

svg2

when rendering ![svg](https://user-images.githubusercontent.com/70787919/163490062-89be1e9a-c610-42c1-9c54-d9e0c7a3b438.svg) the result is ![png](https://user-images.githubusercontent.com/70787919/163490107-7e1de15b-de6f-4b90-a8f4-fb6b29ee796d.png) please note the upper right anomaly. It also occurs for other files: ![svg](https://user-images.githubusercontent.com/70787919/163490313-805b89aa-38cf-465e-9236-fb999dfd58e5.svg) ![png](https://user-images.githubusercontent.com/70787919/163490322-42602c5e-b77f-4af2-95cb-40624b66bf0a.png) again, look at the top right. I have other...

bug

#### svg ![svg](https://upload.wikimedia.org/wikipedia/commons/0/05/Vector_saturn.svg) #### png |ink|rsvg|resvg| |--|--|--| |![Vector saturn](https://user-images.githubusercontent.com/15687581/75484392-010a0380-59a9-11ea-8f84-2cf7c0313407.png)|![Vector saturn_r](https://user-images.githubusercontent.com/15687581/75484398-01a29a00-59a9-11ea-9219-135906684973.png)|![Vector saturn_re](https://user-images.githubusercontent.com/15687581/75484400-023b3080-59a9-11ea-88ad-2deacdfccf8a.png)| #### Expected ![PNG](https://upload.wikimedia.org/wikipedia/commons/8/85/Vector_saturn_%28Correct_render%29.png) #### Copyright source https://commons.wikimedia.org/wiki/File:Vector_saturn.svg author Kelvinsong license https://creativecommons.org/licenses/by-sa/3.0/deed.de

I rendered the example from #252 again: ## SVG SVG source code ```svg tspan { stroke: none; fill: #000; } text {font-size:12pt} ]]> 1. Using style attribute directly 2. Using...

## Input SVG ![instant insanity nets](https://user-images.githubusercontent.com/15687581/158151833-7c9c6fad-aad3-446e-a139-af65f299ba36.svg) ## Rendering PNG with resvg 0.22.0 ![instant insanity nets_rendersvg](https://user-images.githubusercontent.com/15687581/158151919-0534f728-d431-465a-8394-d1932031b06e.png) ## Copyright author [cmglee](https://commons.wikimedia.org/wiki/User:Cmglee) license [CC-BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0) source https://commons.wikimedia.org/wiki/File:Instant_insanity_nets.svg ## Similar issues #259 #385 #366

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/dominant-baseline