当前位置:网站首页>VFP calls the command line image processing program, and adding watermark is also available

VFP calls the command line image processing program, and adding watermark is also available

2022-06-25 11:44:00 VFP of Garfield

NConvert yes XnView A command line tool for batch image processing , It has many image processing functions , For example, metadata editing 、 Picture format conversion 、 Resize the picture 、 Brightness adjustment 、 Fuzzy 、 Sharpen, etc , How much support 500 Multiple image formats , Not just for Windows platform , stay linux、Mac And other platforms have corresponding versions , Because it adopts the operation mode of command line , Therefore, it is more suitable for advanced users .

NConvert The main features

One 、 Numerous toolsets

1、 Metadata editing .
2、 transformation : rotate , tailoring , Resize …
3、 adjustment : brightness , Contrast , saturation ,…
4、 filter : Fuzzy , Relief , sharpening ,…
5、 effect : shielding , watermark ,Vignetti

Two 、 Multi platform support

NConvert Multi platform , Apply to Windows,Mac,Linux,FreeBSD,OS / 2,DOS32 LE,MSDOS,ATARi,BeOS x86,QNX,Irix,Solaris,HP-UX,AIX etc. .

3、 ... and 、 Excellent compatibility

NConvert Compatible with 500 More than picture formats ( Include Multipage And animation static format APNG,TIFF,GIF,ICO etc. ), And export to about 70 Different file formats .

Four : A simple example

Add watermark :
-wmfile file : File as watermark
-wmpos x y : Watermark location
-wmflag flag : Watermark location
top-left, top-center, top-right
center-left, center, center-right
bottom-left, bottom-center, bottom-right
-wmopacity value : Watermark transparency (0-100)

=> nconvert -wmpos 100 200 -wmflag center -wmopacity 30 -wmfile sample.jpg origin.jpg
 take sample.jpg Add as watermark to  origin.jpg, And set the transparency to 30

Add text to picture :
-text string : Add text to picture
-text_font name size : Text type and size
-text_color r g b : Text color
-text_back r g b : Text background color
-text_flag pos : Text location

top-left, top-center, top-right
center-left, center, center-right
bottom-left, bottom-center, bottom-right

-text_pos x y : Displacement or offset
-text_rotation degrees : Text rotation
11

=> nconvert -text_pos 100 150 -text_rotation 30  -text_back 255 255 120 -text   Rain forest wind  in.jpg

Clockwise on the picture 30 The degree is printed with words , The text background is yellow

nconvert -text_font Verdana 72 -text_pos 90 100 -text_rotation 120  -text_flag center -text_color 255 0 255 -text_back 255 255 255 -text  How do you know it's not a fish  *.jpg

More information :www.sn58.cn

原网站

版权声明
本文为[VFP of Garfield]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202200535523032.html