标签 图片加水印 下的文章

右击文件用ImageMagick打水印

http://www.imagemagick.org 下载最新ImageMagick。解压到D:\app\ImageMagick-6.8.6-Q16目录下。保存以下内容为.reg。然后导入此.reg。右击任意jpg/gif/png文件,点击“2tunps.com” 即可给文件的右上角加上文字内容copyright tunps.com

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\2tunps.com]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\2tunps.com\Command]
@="d:\\app\\ImageMagick-6.8.6-Q16\\convert.exe \"%1\" -font Arial -pointsize 28 -draw \"gravity southeast fill black text 0,0 'tunps.com' fill white text 1,1 'tunps.com'\" \"%1\""

-

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\3hahaku]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\3hahaku\Command]
@="d:\\app\\ImageMagick-6.8.8-5\\convert.exe \"%1\" -font Arial -pointsize 30 -draw \"gravity southeast fill black text 0,0 'hahaku.net' fill white text 1,1 'hahaku.net'\" \"%1\""

-

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\1hahaku]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\1hahaku\Command]
@="d:\\app\\ImageMagick-6.8.6-Q16\\convert.exe \"%1\" -font Arial -pointsize 12 -draw \"gravity southeast fill black text 0,0 'hahaku.net' fill white text 1,1 'hahaku.net'\" \"%1\""

文字字体、字号、文字内容、水印位置均可调节。具体参见:

http://www.imagemagick.org/Usage/annotating/#watermarking