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

[Feature Request] Jpeg DownSample options #146

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

[Feature Request] Jpeg DownSample options #146

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

Comments

@antoox-yk
Copy link

antoox-yk commented Aug 15, 2023

Hi team,

I noticed that the JPEG downsampling option is currently set to Downsample::BothDirections => SkJpegEncoder_Downsample::k420 by default, as shown here.

In certain use cases, this default setting can cause exported JPEG images to appear "blurry." For high-quality exports, I currently work around this by exporting images as PNG first, then converting them to JPEG with 4:4:4 subsampling using a separate library. However, this is a multi-step process that adds complexity and extra resource usage.

Feature Proposal:

It would be highly beneficial to allow custom downsampling settings directly within the toBuffer function. This enhancement would provide users with more control over the output quality, enabling the selection of different subsampling options (such as 4:4:4) to avoid potential quality loss.

Thank you for considering this feature!

@antoox-yk antoox-yk changed the title jpeg rendering quality [Feature Request] Jpeg DownSample options Nov 6, 2024
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