Watermark as Percentage of Image Size
Posted: Wed Mar 20, 2019 9:39 pm
EDIT: I just realized I should have posted this in the NConvert section.Perhaps it can be moved, because I'm not allowed to delete it.
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:
As you can see there is no information on what command XNViewMp used to make the watermark a percentage of the image size.
I then added to the code to make it work in CLI:
I've tried placing in various positions in the above code, but no luck getting it to work.
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%