当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- Event monitoring problem
- List to map (split the list according to the key, and the value of the same key is a list)
- How to make characters move
- September 9, 2020: naked writing algorithm: two threads print numbers 1-100 in turn.
- Js数组-数组的用法全在这里(数组方法的重构、数组的遍历、数组的去重,数组的判断与转换)
- Count the number of project code lines
- 2020-09-09:裸写算法:两个线程轮流打印数字1-100。
- All the way, I was forced to talk about C code debugging skills and remote debugging
- A good thing for working people -- to temper the will of iron and steel requires such an efficient computer
- 10000! Ideal car recalls all defective cars: 97 accidents have occurred and losses will be expanded
猜你喜欢
Js数组-数组的用法全在这里(数组方法的重构、数组的遍历、数组的去重,数组的判断与转换)
Epu360: all the H5 templates you want are here, e-book, big turntable, red envelope rain, questionnaire survey
Ora-02292: complete constraint violation (midbjdev2.sys_ C0020757) - subrecord found
The role of theme music in games
Stm32f030k6t6 compatible replacement smart mm32f031k6t6
2020-09-03:裸写算法:回形矩阵遍历。
To solve the problem that the data interface is not updated after WPF binding set
JVM class loading mechanism
Stm32f030f4p6 compatible with smart micro mm32f031f4p6
2020-08-14:数据任务的执行引擎用的哪些?
随机推荐
Big data processing black Technology: revealing the parallel computing technology of Pb level data warehouse gaussdb (DWS)
Nodejs中使用jsonwebtoken(JWT)生成token的场景使用
非易失性MRAM存储器应用于各级高速缓存
ImageMagick - 添加水印
Summary of common SQL statements
How to prepare for the system design interview
Reserved battery interface, built-in charge and discharge circuit and electricity meter, quickly help easily handle hand-held applications
Mobile pixel adaptation scheme
[doodling the footprints of Internet of things] Introduction to Internet of things
Practice of Xiaoxiong school development board: real equipment access of smart street lamp sandbox experiment
File download manager realized by electron
image operating system windows cannot be used on this platform
心理咨询app开发所具备的优点与功能
STM32F030K6T6兼容替换灵动MM32F031K6T6
August 18, 2020: introduce Mr process?
汽车维修app开发的好处与功能
2020-08-14:数据任务的执行引擎用的哪些?
2020-08-17:详细说下数据倾斜怎么解决?
Event monitoring problem
Detailed software engineering -- the necessary graphs in each stage