当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- STM32F030C6T6兼容替换MM32SPIN05PF
- Utility class functions (continuous update)
- Experiment one
- “非洲用户的付费意愿并不低”——专访四达时代研发总监张亮
- Open source a set of minimalist front and rear end separation project scaffold
- Code generator plug-in and creator preform file analysis
- 2020-09-04:函数调用约定了解么?
- 消防器材RFID固定资产管理系统
- Windows 10 Bluetooth management page 'add Bluetooth or other devices' option click no response solution
- Characteristics of magnetic memory chip STT-MRAM
猜你喜欢

Common mathematical basic formulas of recursive and backtracking algorithms

2020-08-19:TCP是通过什么机制保障可靠性的?

Qt音视频开发46-视频传输UDP版

Message queue - Analysis

2020-08-15:什么情况下数据任务需要优化?

Nonvolatile MRAM memory used in all levels of cache

vue3 新特性

Stm32f030k6t6 compatible replacement smart mm32f031k6t6

JVM memory allocation - xms128m - xmx512m - XX: permsize = 128M - XX: maxpermsize = 512M

Exclusive interview with Alibaba cloud database for 2020 PostgreSQL Asia Conference: Zeng Wenjing
随机推荐
Stm32f030k6t6 compatible replacement smart mm32f031k6t6
Why is the LS command stuck when there are too many files?
Hdu3974 assign the task segment tree DFS order
2020-09-04:函数调用约定了解么?
[learning] interface test case writing and testing concerns
DC-1 target
C and C / C + + mixed programming series 5 - GC collaboration of memory management
How to make characters move
Understanding formatting principles
如何创建交互式内核密度图表
August 18, 2020: introduce Mr process?
The role of theme music in games
Markdown tricks
JS array the usage of array is all here (array method reconstruction, array traversal, array de duplication, array judgment and conversion)
Zhou Jie: database system of East China Normal University
2020-08-20: the difference between go and python?
“非洲用户的付费意愿并不低”——专访四达时代研发总监张亮
Application of UHF RFID medical blood management system
Stickinengine architecture 12 communication protocol
C calls SendMessage to refresh the taskbar icon (the icon does not disappear at the end of forcing)