当前位置:网站首页>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
边栏推荐
- Capacity expansion mechanism of Dict Of redis (rehash)
- The temporary table from XML to VFP is simple and easy to use and worth collecting
- 兴业证券是国企吗?在兴业证券开户资金安全吗?
- The service layer reports an error. The XXX method invalid bound statement (not found) cannot be found
- 记一次有趣的逻辑SRC挖掘
- .Net Core 中使用工厂模式
- Thingspanel releases Internet of things mobile client (multiple pictures)
- Flink partition policy
- 云原生数据湖以存储、计算、数据管理等能力通过信通院评测认证
- redis的dict的扩容机制(rehash)
猜你喜欢

An interesting logic SRC mining

VFP develops a official account to receive coupons, and users will jump to various target pages after registration, and a set of standard processes will be sent to you

Flink deeply understands the graph generation process (source code interpretation)

记一次给OpenHarmony提交代码的过程

寿命分布 4种

ThingsPanel 发布物联网手机客户端(多图)

Thingspanel releases Internet of things mobile client (multiple pictures)

Startups must survive

SQL注入漏洞(繞過篇)

牛客网:旋转数组
随机推荐
Two ways of redis persistence -- detailed explanation of RDB and AOF
如何实现移动端富文本编辑器功能
SQL injection vulnerability (type chapter)
An interesting logic SRC mining
Spannable and editable, spannablestring and spannablestring
子类A继承父类B, A a = new A(); 则父类B构造函数、父类B静态代码块、父类B非静态代码块、子类A构造函数、子类A静态代码块、子类A非静态代码块 执行的先后顺序是?
Problems encountered using easyexcel
现在网上炒股开户身份证信息安全吗?
Countdownlatch source code analysis
Handler、Message、Looper、MessageQueue
Real software developers will use this method to predict the future
try-catch-finally
TCP如何處理三次握手和四次揮手期間的异常
CMU puts forward a new NLP paradigm - reconstructing pre training, and achieving 134 high scores in college entrance examination English
Sentinel integrated Nacos data source
redis的dict的扩容机制(rehash)
Capacity expansion mechanism of Dict Of redis (rehash)
JVM shutdown hook details
SMS verification before deleting JSP
Startups must survive