Repository navigation
[Feature] Image tiles all over the page - #24
Merged
Merged
Conversation
AnkurGel
commented
Oct 10, 2022
| ) | ||
|
|
||
| // Watermarkable is a common interface for watermarkable image or paragraph | ||
| type Watermarkable interface { |
Contributor
Author
There was a problem hiding this comment.
have written as an interface for it to work with both paragraph and image
AnkurGel
commented
Oct 10, 2022
| p.SetColor(creator.ColorRGBFromHex("#" + color)) | ||
| p.SetAngle(angle) | ||
|
|
||
| // Encountering problem with tiles and text watermark. Contributions welcome. |
Contributor
Author
There was a problem hiding this comment.
for some reason, the tiles in paragraph isn't working fine. Generates error after couple of iterations:
[DEBUG] contentstream.go:94 ERROR: Name too long (Font100000000...
@ajaxray can you check if you can make it work? Can be targeted outside the scope of this PR.
Contributor
Author
|
Hey @ajaxray. Did you get a chance to review this and the other PR? |
Owner
|
@AnkurGel, |
Owner
|
Merged with many many thanks. 😄 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Synatax:
In above syntax, using

-pto scale the image to 10% and-tto generate tiles all over the page. Result: pattern like below:You can also use an additional flag
-zor--spacingto add spacing b/w the tiles.