Watermark error with wmpos

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

Moderators: XnTriq, helmut, xnview

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

Watermark error with wmpos

Post 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
cday
XnThusiast
Posts: 3985
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Watermark error with wmpos

Post 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 1201 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 »

That works perfectly! I wouldnt have thought of that.

Much appreciated :)

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

Re: Watermark error with wmpos

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