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

jpeg rendering quality #146

Open
antoox-yk opened this issue Aug 15, 2023 · 0 comments
Open

jpeg rendering quality #146

antoox-yk opened this issue Aug 15, 2023 · 0 comments

Comments

@antoox-yk
Copy link

Hi there,

I stumbled upon a rendering quality problem when exporting the canvas as JPEG: at small dimensions (e.g. 300x250) the exported jpeg seems "blurry".

Here is the difference between (these visuals are just examples & the quality property is set to 1):

  1. a JPEG created with skia-canvas
    e653672b-3f70-4676-b923-dc82d5bad740

  2. a PNG created with skia-canvas & then transformed with sharp (same result if directly exported as a jpeg with node-canvas).
    7f581a8b-c8fc-4839-8276-161e8c43c66a

If you zoom on it, you will obviously notice that the red line is very blurred in the first JPEG. From my point of view, this seems to come from the chroma subsampling, but I haven't found a way to set it in the export options (nor in the skia-rust library).

Do you have any idea how to fix this, or at least how to improve the JPEG quality?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant