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

Image quality deterioration problem #86

Open
gudh opened this issue Sep 25, 2022 · 1 comment
Open

Image quality deterioration problem #86

gudh opened this issue Sep 25, 2022 · 1 comment

Comments

@gudh
Copy link

gudh commented Sep 25, 2022

First of all, thanks for sharing this amazing watermark tool!

The problem I came across is that, when I running the example code in the doc

# embed watermark into image:
blind_watermark --embed --pwd 1234 examples/pic/ori_img.jpeg "watermark text" examples/output/embedded.png

the output image (33.2 KB) is twice as large as the original image (17.7 KB), but the quality deteriorates

Is there a way to preserve the image quality?

Thanks!

@guofei9987
Copy link
Owner

Use wm.embed(..., compression_ratio=aFloat) to compression the output image.

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

2 participants