Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embedded image shows up pixelated #213

Open
mdeetjen opened this issue Feb 25, 2025 · 0 comments
Open

Embedded image shows up pixelated #213

mdeetjen opened this issue Feb 25, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@mdeetjen
Copy link

Hello and thank you for your great work on lunasvg! I have an issue with an embedded image in an svg showing up as pixelated in the exported png. The embedded image is much higher resolution than the region it covers in the exported png, and from my experience, I would say that the code in lunasvg needs to be changed somewhere such that at the boundary between transparent content and opaque content in the embedded image, there is blending (some gray pixels at the boundary) rather than a sharp rounded cutoff (either black or white pixels). Please let me know if you need any further clarification. I'll attach the relevant images below:

Image I am embedding:

Image

SVG with embedded image:

Image

Exported png where the embedded image looks pixelated:

Image

@sammycage sammycage added the enhancement New feature or request label Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants