linebender / linebender/resvg

Strange anomaly's on crispEdges

Open
#512 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Rust
Stars
4.1k
Forks
348
Avg merge
1d 14h
Merged PRs (30d)
3

Description

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 examples in which it is not just the top right, but i think this will be sufficient.

these are produced with `resvg -w "64" -h "64" --shape-rendering crispEdges "svg_file.svg" "out_file.png"`

when not using `crispEdges`, it does not produce any anomaly's, however it anti aliases the image, which is contrary to my wishes.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the supplied SVG-to-PNG examples with resvg using --shape-rendering crispEdges, comparing them with output without that option. Trace the crispEdges rendering path and determine why an upper-right anomaly appears; done means the examples render without the artifact while retaining non-antialiased crispEdges output.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.