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

gif图片加gif水印,水印颜色会严重失真 #1

Open
liuwei9002 opened this issue Sep 11, 2019 · 1 comment
Open

gif图片加gif水印,水印颜色会严重失真 #1

liuwei9002 opened this issue Sep 11, 2019 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@liuwei9002
Copy link

您好:
请问gif图片加gif水印,如果gif水印颜色较丰富,合成后的gif图片水印颜色会严重失真,请问这种怎么解决?

@caixw
Copy link
Member

caixw commented Sep 11, 2019

目前直接采用了目标图片的调色盘,或许可以比较一下目标图片和水印图片的调色盘丰富程度,然后选一个丰富的作调色盘可能就可以了。
https://github.com/issue9/watermark/blob/master/watermark.go#L182
调整这一行的 img. Palette 试试看。

@caixw caixw added bug Something isn't working help wanted Extra attention is needed labels Sep 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants