Skip to content

wordpress超级图片工具super image tools准备再次升级!

转载本站文章请注明:
转载来至:[记录与PHP的PK经历]
本文链接: wordpress超级图片工具super image tools准备再次升级!

最近升级了wordpress,突然发现wordpress超级图片工具super image tools没办法给图片增加水印了,突然才反应过来,原来是因为升级wordpress的原因,原来修改的代码被覆盖了,如果要使用上传图片增加水印功能,还不得不去修改wordpress代码。这样的操作对于普通的博客使用者来说太麻烦了!一次我觉得需要对插件的增加水印的机制重新进行设计,使得不需要修改wordpress代码就可以对文章内容中的图片进行水印操作。方便大家使用!

目前已经有了实现这个功能的方法了,关于这个功能实现的思路是这样的:

对文章内容中出现的图片进行判断,如果是本地图片,查看与图片相同目录是否有一个与图片同名的.txt文件,如果文件不存在,则对图片增加水印并生成一个与图片同名的.txt文件。

为了不与以前使用了本插件而已经生成图片的水印再次增加水印,增加一个对图片增加水印操作的时间起点参数,通过这个参数判断对新的图片增加水印,老的图片不采取措施。

通过这个方法就可以省去了修改wordpress来安装本插件的操作。



中文关键字:image tools wordpress 图片 插件 水印 代码 文件 设计 时间 目录 工具 升级 pr super image tools

2 Comments

  1. 支持,强烈支持!

    Posted on 20-Jul-08 at 4:45 pm | Permalink
  2. 强烈期待中……

    Posted on 20-Aug-08 at 8:11 pm | Permalink

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*
Note: Commenter is allowed to use '@User+blank' to automatically notify your reply to other commenter. e.g, if ABC is one of commenter of this post, then write '@ABC '(exclude ') will automatically send your comment to ABC. Using '@all ' to notify all previous commenters. Be sure that the value of User should exactly match with commenter's name (case sensitive).