In XnViewMP there is an option in Batch Processing to watermark an image and resize the watermark/logo to a percentage of the image on which the watermark/logo is to appear. In using the Export for Nconvert option I received the following output:
Code: Select all
nconvert -wmopacity 100 -wmfile "/home/images/logo.png" -wmflag top-left
I then added to the code to make it work in CLI:
Code: Select all
nconvert -out jpeg -wmopacity 100 -wmflag top-left -wmfile "/home/images/logo.png" *jpg
Code: Select all
-resize 20% 20%