-
Notifications
You must be signed in to change notification settings - Fork 621
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: