当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- 小熊派开发板实践:智慧路灯沙箱实验之真实设备接入
- Design of NAND flash interface control
- JVM memory allocation - xms128m - xmx512m - XX: permsize = 128M - XX: maxpermsize = 512M
- Message queue - Analysis
- Application insights application insights use application maps to build request link views
- 实验一
- Js字符串-String字符串对象方法
- MRAM高速缓存的组成
- [self taught unity2d legendary game development] map editor
- 如何使用甘特图图层和筛选器
猜你喜欢
打工人好物——磨炼钢铁意志就要这样高效的电脑
2020-08-15:什么情况下数据任务需要优化?
Google browser realizes video playback acceleration function
Design of NAND flash interface control
How to manage the authority of database account?
How to make characters move
Countdown | 2020 PostgreSQL Asia Conference - agenda arrangement of Chinese sub Forum
甘特图对活动进行分组教程
Event monitoring problem
迅为iMX6开发板-设备树内核-menuconfig的使用
随机推荐
JVM class loading mechanism
[doodling the footprints of Internet of things] Introduction to Internet of things
Stm32f030c6t6 compatible to replace mm32spin05pf
The use of Xunwei imx6 development board device tree kernel menuconfig
2020-08-24:什么是小文件?很多小文件会有什么问题?很多小文件怎么解决?(大数据)
2020-08-17:详细说下数据倾斜怎么解决?
September 3, 2020: naked writing algorithm: loop matrix traversal.
Method of code refactoring -- Analysis of method refactoring
A good thing for working people -- to temper the will of iron and steel requires such an efficient computer
Win7 AppCrash (solution)
The 4th China BIM (digital construction) manager Summit Forum will be held in Hangzhou in 2020
Utility class functions (continuous update)
Why is the LS command stuck when there are too many files?
August 18, 2020: introduce Mr process?
Es create a new index database and copy the old index library, practice pro test effective!
2020年新规,微信封号怎么快速解除?
MRAM高速缓存的组成
Design of NAND flash interface control
[graffiti Internet of things footprints] panoramic introduction of graffiti cloud platform
Erd-online free online database modeling tool