wordpress图片加水印插件

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

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

我这里提供本地下载

使用方法:

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

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

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

// Construct the attachment array<br/>$attachment = array(<br/>'post_title' =&gt; $imgtitle ? $imgtitle : $filename,<br/>'post_content' =&gt; $descr,<br/>'post_status' =&gt; 'attachment',<br/>'post_parent' =&gt; $post,<br/>'post_mime_type' =&gt; $type,<br/>'guid' =&gt; $url<br/>);<br/><br/>// INSERT HERE!!!<br/>include(ABSPATH . 'wp-content/plugins/watermark/stempel.php');<br/><br/>// 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: 31% [?]




50% OFF Coupon: 50OFF

4 Comments on “wordpress图片加水印插件”

  • 帕兰卓一得 wrote on 30 September, 2007, 21:36

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

    [Reply]

  • yegle wrote on 11 April, 2008, 18:16

    感谢分享~

    [Reply]

  • HK wrote on 16 March, 2009, 13:29

    外链的图片可以加水印不?

    [Reply]

  • 奇趣屋 wrote on 5 March, 2010, 2:12

    源图片和源图片的缩略图都可以加插件不啊?–奇趣屋http://www.qiqu5.com

    [Reply]

Write a Comment

Gravatars are small images that can show your personality. You can get your gravatar for free today!

*
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

Copyright © 2010 时光漫步. All rights reserved.
Powered by WordPress.org, Custom Theme and ComFi.com Calling Card Company.