-
Notifications
You must be signed in to change notification settings - Fork 613
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
How can i specify the watermark image? #276
Comments
As you can see in GraphicsMagic documentation (http://www.graphicsmagick.org/composite.html) I recommend to google with keywords "GraphicsMagic" or "Imagemagick" and to try command line first of all:
After that using |
Can you provide an example... its not that easy to understand the relation between GraphicsMagic and gm and there is no single example about composite and gm. |
@ptgamr @dimitarkolev I'm not sure if this is till an issue for you guys, but I create watermarked images with this pattern: gm(source)
.command('composite')
.gravity('SouthEast')
.out('-geometry', '+20+10') // offset
.in('watermark.png')
.stream()
.pipe(dest); |
10x I'll try this.
|
@madbence Thank you it worked! I was trying following way, but didn't know how to specify watermark location. gm(readStream)
.autoOrient()
.resize(1280, 1024)
.gravity('SouthEast')
.draw('image Over 10,10 0,0 ' + getAppPath() + '/public/img/watermark.png')
.stream('PNG')
.pipe(writeStream); |
Hi Is it possible to specify a buffer (e.g. from a file upload) for the watermark instead of the physical file on a server? Thanks |
this code is worked for me. |
Hi there,
Documentation say: gm("img.png").watermark(brightness, saturation)
I wonder how to specify which image should be added as watermark?
Thanks for any help!
The text was updated successfully, but these errors were encountered: