Page 1 of 1

Watermark error with wmpos

Posted: Wed Dec 09, 2015 9:44 am
by miksmith
Hi

I've tried this command

nconvert -out jpeg -wmfile overlay\GOPR3908.jpg -wmflag bottom-right -o final\atest GOPR3908.jpg

which adds a watermark overlay to an image and saves it in another directory. However no matter what I change for wmflag or use wmpos it *always* places the overlay in the top left corner.

have I done something wrong here??

thanks

mike

PS Latest version of nconvert

Re: Watermark error with wmpos

Posted: Wed Dec 09, 2015 9:42 pm
by cday
Placing the the Watermark position before the Watermark file term seems to solve the problem :D :

Code: Select all

nconvert -wmflag center -wmfile watermark.jpg -o image_wm.jpg image.jpg
If you think that is not entirely intuitive given the help file listing:

Code: Select all

-wmfile file      : Watermark file
-wmpos x y        : Watermark position
-wmflag flag      : Watermark position
       top-left, top-center, top-right
       center-left, center, center-right
       bottom-left, bottom-center, bottom-right
... so do I... :wink:
image_wm.jpg
image_wm.jpg (1.42 KiB) Viewed 1345 times
Pierre: Would it be possible to make NConvert accept either order, or to change the order shown in the help file?

Re: Watermark error with wmpos

Posted: Wed Dec 09, 2015 10:51 pm
by miksmith
That works perfectly! I wouldnt have thought of that.

Much appreciated :)

m

Re: Watermark error with wmpos

Posted: Thu Dec 10, 2015 3:10 pm
by xnview
cday wrote: Pierre: Would it be possible to make NConvert accept either order, or to change the order shown in the help file?
-wmfile must be the last command :) i'll add it in help