当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- 【涂鸦物联网足迹】物联网基础介绍篇
- Road to simple HTML + JS to achieve the most simple game Tetris
- 2020-09-09:裸写算法:两个线程轮流打印数字1-100。
- Using JSON webtoken (JWT) to generate token in nodejs
- 2020-09-04:函数调用约定了解么?
- Nonvolatile MRAM memory used in all levels of cache
- Common mathematical basic formulas of recursive and backtracking algorithms
- JS string - string string object method
- File download manager realized by electron
- The first choice for lightweight GPU applications is the NVIDIA vgpu instance launched by Jingdong Zhilian cloud
猜你喜欢
Code generator plug-in and creator preform file analysis
Utility class functions (continuous update)
2020-09-04:函数调用约定了解么?
Erd-online free online database modeling tool
迅为-iMX6ULL开发板上配置AP热点
[self taught unity2d legendary game development] map editor
QT audio and video development 46 video transmission UDP version
Detailed software engineering -- the necessary graphs in each stage
轻量型 GPU 应用首选 京东智联云推出 NVIDIA vGPU 实例
Interviewer: how about shardingsphere
随机推荐
image operating system windows cannot be used on this platform
2020-08-29: process thread differences, in addition to the inclusion relationship, the underlying details?
Mongo user rights login instruction
Hdu3974 assign the task segment tree DFS order
ado.net and asp.net The relationship between
File download manager realized by electron
超高频RFID医疗血液管理系统应用
Big data processing black Technology: revealing the parallel computing technology of Pb level data warehouse gaussdb (DWS)
2020-09-04:函数调用约定了解么?
2020-08-24:什么是小文件?很多小文件会有什么问题?很多小文件怎么解决?(大数据)
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
Stm32f030f4p6 compatible with smart micro mm32f031f4p6
Common mathematical basic formulas of recursive and backtracking algorithms
Ora-02292: complete constraint violation (midbjdev2.sys_ C0020757) - subrecord found
VARCHART XGantt入门教程
RFID fixed assets management system for fire equipment
移动端像素适配方案
Stm32f030k6t6 compatible replacement smart mm32f031k6t6