Watermark error with wmpos

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: XnTriq, xnview

Post Reply
miksmith
Posts: 18
Joined: Wed Jun 17, 2009 3:04 pm

Watermark error with wmpos

Post by miksmith » Wed Dec 09, 2015 9:44 am

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

cday
XnThusiast
Posts: 2251
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Watermark error with wmpos

Post by cday » Wed Dec 09, 2015 9:42 pm

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 977 times
Pierre: Would it be possible to make NConvert accept either order, or to change the order shown in the help file?

miksmith
Posts: 18
Joined: Wed Jun 17, 2009 3:04 pm

Re: Watermark error with wmpos

Post by miksmith » Wed Dec 09, 2015 10:51 pm

That works perfectly! I wouldnt have thought of that.

Much appreciated :)

m

User avatar
xnview
Author of XnView
Posts: 32251
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Watermark error with wmpos

Post by xnview » Thu Dec 10, 2015 3:10 pm

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
Pierre.

Post Reply