wordpress图片加水印插件

 Watermark,在页面上增加一个水印效果的图片,后台可以精确控制水印所在位置。

这个需要用代理访问,可以使用这些代理工具

我这里提供本地下载

使用方法:

将下载到的文件,解压缩,将watermark文件夹整个上传到/wp-content/plugins/中,

即目录结构是/wp-content/plugins/watermark

然后修改wp-admin/inline-uploading.php文件,如下:

// Construct the attachment array
$attachment = array(
‘post_title’ => $imgtitle ? $imgtitle : $filename,
‘post_content’ => $descr,
‘post_status’ => ‘attachment’,
‘post_parent’ => $post,
‘post_mime_type’ => $type,
‘guid’ => $url
);

// INSERT HERE!!!
include(ABSPATH . ‘wp-content/plugins/watermark/stempel.php’);


// Save the data

即,加入这句:include(ABSPATH . ‘wp-content/plugins/watermark/stempel.php’);

然后,可以自己做一个水印的图片,覆盖watermark文件夹中的stempel.png

也可以上传喜欢的字体文件到watermark/fonts/中。

在后台激活插件以后,在Options标签下,就有Watermark的全部设置,可以使用图片,

可以使用文字,有比较精确的水印放置的控制。

watermark2.png

注意,图片只有通过后台上传才可以显示水印,用Zoundry是不行的。


Technorati :
Del.icio.us :
Ice Rocket :

Popularity: 32% [?]

Tags:
Related posts

cirtexhosting_ads.gif

2 Responses to “wordpress图片加水印插件”

  1. 看似蛮强大。但是限定上传图片才有水印这点是个缺陷。倒不如直接在CSS文件里面样式化图片,给图片加上水印。

  2. 感谢分享~

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word