当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- 如何使用甘特图图层和筛选器
- #JVM 类加载机制
- The method of local search port number occupation in Windows system
- Using iceberg on kubernetes to create a new generation of cloud original data Lake
- August 18, 2020: introduce Mr process?
- September 3, 2020: naked writing algorithm: loop matrix traversal.
- RFID fixed assets management system for fire equipment
- Configuration of AP hotspot on xunwei-imx6ull development board
- Message queue - Analysis
- JS string - string string object method
猜你喜欢
Common syntax corresponding table of mongodb and SQL
Es create a new index database and copy the old index library, practice pro test effective!
JVM class loading mechanism
Reserved battery interface, built-in charge and discharge circuit and electricity meter, quickly help easily handle hand-held applications
Mongo user rights login instruction
How to make characters move
Interviewer: how about shardingsphere
预留电池接口,内置充放电电路及电量计,迅为助力轻松搞定手持应用
Novice guidance and event management system in game development
MRAM高速缓存的组成
随机推荐
Introduction to the development of small game cloud
The memorandum model of behavior model
2020-08-19:TCP是通过什么机制保障可靠性的?
How to manage the authority of database account?
2020-09-04:函数调用约定了解么?
Utility class functions (continuous update)
In 2020, how can wechat seal numbers be quickly lifted?
非易失性MRAM存储器应用于各级高速缓存
Exclusive interview with Alibaba cloud database for 2020 PostgreSQL Asia Conference: Zeng Wenjing
Open source a set of minimalist front and rear end separation project scaffold
Method of code refactoring -- Analysis of method refactoring
Application of UHF RFID medical blood management system
迅为-iMX6ULL开发板上配置AP热点
大佬们如何在nginx镜像里面增加模块?
How much disk space does a file of 1 byte actually occupy
STM32F030K6T6兼容替换灵动MM32F031K6T6
细数软件工程----各阶段必不可少的那些图
VARCHART XGantt如何在日历上表示工作日
Mobile pixel adaptation scheme
The first choice for lightweight GPU applications is the NVIDIA vgpu instance launched by Jingdong Zhilian cloud