Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Support for image-rendering: pixelated #616

Closed
volkyeth opened this issue May 21, 2024 · 1 comment
Closed

Support for image-rendering: pixelated #616

volkyeth opened this issue May 21, 2024 · 1 comment

Comments

@volkyeth
Copy link

Feature Request

Description

When using upscaled png images, specifically ones including pixel art, I want to be able to use the css style image-rendering: pixelated to make the image crisp (make it use nearest neighbour scaling)

Additional Context

Currently that style has no effect, and upscaled pixel art images get blurry. The workaround is upscaling them with something like https://github.com/lovell/sharp before using with Satori.

@shuding
Copy link
Member

shuding commented Jun 2, 2024

I don't think there's an equivalent API inside SVG's <image> element (https://developer.mozilla.org/en-US/docs/Web/SVG/Element/image), so the end result of Satori can't have pixelated images embedded. Thanks for the idea though, I'll move this to discussions until we have a clear path on how this can be supported.

@vercel vercel locked and limited conversation to collaborators Jun 2, 2024
@shuding shuding converted this issue into discussion #619 Jun 2, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants