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

Extend WatermarkFilter with multiple option #1281

Merged
merged 1 commit into from
Oct 29, 2020
Merged

Extend WatermarkFilter with multiple option #1281

merged 1 commit into from
Oct 29, 2020

Conversation

tzemp
Copy link

@tzemp tzemp commented May 7, 2020

Signed-off-by: Timothy Zemp [email protected]

Q A
Branch? 2.0
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #1007
License MIT
Doc PR no

Extends the watermark functionally to allow multiple watermarks of the same type. It tries to paste the watermark onto the image as often as possible.

I'm not sure if "position" is the right way to address this problem, but i can be solved within few lines of code. It can also uses the "size" attribute -> 0.25% -> 4 watermarks per width.

Maybe some validation is required to prevent sizes > 1.0, as this is not validated yet.

Feedback appreciated :-)

Copy link
Member

@dbu dbu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool!

@dbu dbu merged commit 9ac3512 into liip:master Oct 29, 2020
@peter-gribanov
Copy link
Contributor

As far as i understand, the watermark is paved in the picture over its entire area. Perhaps the option should have been named "pave"?

Problem #1007 talks about adding several different watermarks to one picture with the ability to choose the location of the watermarks, and not about pave the entire picture with one watermark.

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

Successfully merging this pull request may close these issues.

3 participants