当前位置:网站首页>ImageMagick - add watermark
ImageMagick - add watermark
2020-11-06 22:22:00 【wffger】
background
Recently, I want to add my own watermark to my mind map , Many examples on the Internet use ImageMagick To complete . But a lot of code doesn't work locally . After some experiments , Find two ways .
Method 1
Code
stackoverflow Method improvement :
convert 'ISO_IEC 25010.jpg' \
\( \
-size 60x60 xc:none \
-fill grey \
-gravity center \
-draw "text 0,0 'wffger'" -rotate -30 -write mpr:wm \
+delete \
+clone -fill mpr:wm -draw 'color 0,0 reset' \
\) \
-compose Multiply \
-composite \
'ISO_IEC 25010-mark1.jpg'
explain
- -size, Control size , Set watermark spacing indirectly .
- xc:none, Set the watermark to have no background color ,xc by "X Constant Image".
- -fill, Set watermark font color , Can't set to white , Or be -compose Multiply Set to transparent
Method 2
Code
ImageMagick Official watermark guide :
convert -size 600x600 xc:none -fill grey \
-gravity NorthWest -draw "text 10,10 'wffger'" \
-gravity SouthEast -draw "text 5,15 'wffger'" \
miff:- |\
composite -tile - 'ISO_IEC 25010.jpg' 'ISO_IEC 25010-mark2.jpg'
explain
- -size, Set watermark image size .
- -tile, Tile the watermark .
Environmental Science
ydx@ydx-mf:~/ file $ uname -a
Linux ydx-mf 5.7.11-200.fc32.x86_64 #1 SMP Wed Jul 29 17:15:52 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
ydx@ydx-mf:~/ file $ rpm -qi ImageMagick
Name : ImageMagick
Epoch : 1
Version : 6.9.11.22
Release : 1.fc32
Architecture: x86_64
版权声明
本文为[wffger]所创,转载请带上原文链接,感谢
边栏推荐
- html+ vue.js Implementing paging compatible IE
- Mongo user rights login instruction
- Application insights application insights use application maps to build request link views
- Nonvolatile MRAM memory used in all levels of cache
- 预留电池接口,内置充放电电路及电量计,迅为助力轻松搞定手持应用
- [self taught unity2d legendary game development] map editor
- Jenkins installation and deployment process
- 1万辆!理想汽车召回全部缺陷车:已发生事故97起,亏损将扩大
- 迅为-iMX6ULL开发板上配置AP热点
- Code generator plug-in and creator preform file analysis
猜你喜欢

Epu360: all the H5 templates you want are here, e-book, big turntable, red envelope rain, questionnaire survey

QT audio and video development 46 video transmission UDP version

C and C / C + + mixed programming series 5 - GC collaboration of memory management

The method of local search port number occupation in Windows system

August 24, 2020: what are small documents? What's wrong with a lot of small files? How to solve many small files? (big data)

2020 database technology conference helps technology upgrade

All the way, I was forced to talk about C code debugging skills and remote debugging

August 18, 2020: introduce Mr process?

Application of UHF RFID medical blood management system

2020-08-18:介绍下MR过程?
随机推荐
Markdown tricks
The isolation level of transaction and its problems
2020-08-17:详细说下数据倾斜怎么解决?
The method of local search port number occupation in Windows system
Nonvolatile MRAM memory used in all levels of cache
2020-08-29:进程线程的区别,除了包含关系之外的一些区别,底层详细信息?
Win7 AppCrash (solution)
Mobile pixel adaptation scheme
Code generator plug-in and creator preform file analysis
[byte jumps, autumn recruitment Posts open] ohayoo! Don't leave after school, I want to ask you to play games!!!
汽车维修app开发的好处与功能
JVM class loading mechanism
Novice guidance and event management system in game development
JS array the usage of array is all here (array method reconstruction, array traversal, array de duplication, array judgment and conversion)
甘特图对活动进行分组教程
心理咨询app开发所具备的优点与功能
Introduction to Huawei cloud micro certification examination
2020-08-14:数据任务的执行引擎用的哪些?
Configuration of AP hotspot on xunwei-imx6ull development board
“非洲用户的付费意愿并不低”——专访四达时代研发总监张亮