当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- Interviewer: how about shardingsphere
- Stm32f030c6t6 compatible to replace mm32spin05pf
- The memorandum model of behavior model
- August 30, 2020: naked write algorithm: the nearest common ancestor of two nodes in a binary tree.
- Visual rolling [contrast beauty]
- September 9, 2020: naked writing algorithm: two threads print numbers 1-100 in turn.
- 消防器材RFID固定资产管理系统
- 2020-08-17:详细说下数据倾斜怎么解决?
- Event monitoring problem
- Application insights application insights use application maps to build request link views
猜你喜欢

2020-09-09:裸写算法:两个线程轮流打印数字1-100。

磁存储芯片STT-MRAM的特点

2020-08-20:GO语言中的协程与Python中的协程的区别?

Message queue - Analysis

How to make characters move

Nonvolatile MRAM memory used in all levels of cache

Exclusive interview with Alibaba cloud database for 2020 PostgreSQL Asia Conference: Zeng Wenjing

Exclusive interview of guests at | 2020 PostgreSQL Asia Conference: Wang Tao

Empty test suite appears in JUnit test

To solve the problem that the data interface is not updated after WPF binding set
随机推荐
Windows 10 Bluetooth management page 'add Bluetooth or other devices' option click no response solution
Python 100 cases
RFID fixed assets management system for fire equipment
如何创建交互式内核密度图表
VARCHART XGantt入门教程
STM32F030F4P6兼容灵动微MM32F031F4P6
Road to simple HTML + JS to achieve the most simple game Tetris
JVM memory allocation - xms128m - xmx512m - XX: permsize = 128M - XX: maxpermsize = 512M
Utility class functions (continuous update)
Using JSON webtoken (JWT) to generate token in nodejs
Nodejs中使用jsonwebtoken(JWT)生成token的场景使用
2020 database technology conference helps technology upgrade
【涂鸦物联网足迹】物联网基础介绍篇
What the hell is fastthreadlocal? The existence of ThreadLocal!!
[elastic search engine]
A concise tutorial for Nacos, ribbon and feign
Epu360: all the H5 templates you want are here, e-book, big turntable, red envelope rain, questionnaire survey
2020-08-14:数据任务的执行引擎用的哪些?
List to map (split the list according to the key, and the value of the same key is a list)
Introduction to the development of small game cloud