Open gudh opened 2 years ago
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!
Use wm.embed(..., compression_ratio=aFloat) to compression the output image.
wm.embed(..., compression_ratio=aFloat)
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
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!