-
Notifications
You must be signed in to change notification settings - Fork 37
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
[Feature] Image tiles all over the page #24
Conversation
) | ||
|
||
// Watermarkable is a common interface for watermarkable image or paragraph | ||
type Watermarkable interface { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have written as an interface for it to work with both paragraph and image
@@ -22,14 +22,24 @@ func drawText(p *creator.Paragraph, c *creator.Creator) { | |||
p.SetColor(creator.ColorRGBFromHex("#" + color)) | |||
p.SetAngle(angle) | |||
|
|||
// Encountering problem with tiles and text watermark. Contributions welcome. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Hey @ajaxray. Did you get a chance to review this and the other PR? |
@AnkurGel, |
Merged with many many thanks. 😄 |
Synatax:
In above syntax, using
-p
to scale the image to 10% and-t
to generate tiles all over the page. Result: pattern like below:You can also use an additional flag
-z
or--spacing
to add spacing b/w the tiles.