How to use the wmfile option

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

Moderators: XnTriq, xnview

Post Reply
mads

How to use the wmfile option

Post by mads »

I have tried to watermark a picutre, but I failed... can someone help me ?

I used nconvert 4.25 on windows

nconvert -o new.gif -wmfile wm.gif original.gif

-- also if I used the "-wmflag top-left" i recieved the message "cant open file <wmflag>"
User avatar
xnview
Author of XnView
Posts: 33886
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: How to use the wmfile option

Post by xnview »

mads wrote:I have tried to watermark a picutre, but I failed... can someone help me ?

I used nconvert 4.25 on windows

nconvert -o new.gif -wmfile wm.gif original.gif

-- also if I used the "-wmflag top-left" i recieved the message "cant open file <wmflag>"
Watermark is only possible with 32 bpp picture. Do you use:
nconvert -o new.gif -wmfile wm.gif -wmflag top-left original.gif?
Pierre.
mads

reply

Post by mads »

Thanks Pierre! It works when I use JPG and PNG pictures :)

The problem with -wmflag top-left is solved too, I dont remember how
I got the error, but I guess I was fustrating getting the watermark on the pic.

Thanks for great programs.

Mads
Guest

Post by Guest »

Is there some special type of png required to get this to work?

I have a nice transparent png that looks fine in photoshop but when I use it as a watermark all I get is the watermark comped over white the background image isn't there. Nconvert reports "OK" but it is ignoring the transparency in the png.
I can do a convert without the watermark and that works....
Guest

Post by Guest »

Ok so I can get this to work but its very long winded.

I have a png with tranparency and a watermark also a png with transparency to put over it.

I have to first convert the background png to a jpg
Then put the watermark on using -wmfile and save to a new png
Then convert the png to a jpg with yet another convert.

I would expect to be able to do this all in one line.... but at least it works.
Post Reply