WordPress写日志时自动保存远程图片的插件

我们写日志时,复制了别人网站上的一篇文章,文章中有图片,想把图片下载到自己的空间里,怎么呢?

本插件就是实现这样的功能。

本插件的功能:
1、自动保存远程图片并加水印
2、检查文章是否重复
3、去除非本站链接。

2010年7月10日更新:
版本:2.2.1
修复了程序上的一个小错误

2009年1月14日更新:
版本:2.2
修正图片重复下载的问题(感谢网友skytsui的帮助)

2008年12月15日更新:
版本:2.0
修正问题:
1、增加图片自动添加水印功能
2、接受xlei.net朋友的部分意见(见本日志评论),把文章标题作为Media Library中图片的标题
3、支持wordpress2.7

2008年5月22日更新:
版本:1.2
修正问题:
1、
针对有些朋友说不喜欢默认选中“自动保存远程图片”和“去除非本站链接”,现在改成了自动保存你最后一次的选择状态。
2、感谢wowo173发现了“去除非本站链接”会把本站链接也去掉的BUG,现在已修正。

Wordpress写日志时自动保存远程图片的插件

插件下载地址:http://www.01on.com/down/auto-save-image.zip

文章来自: 幻龙网络
引用通告地址: 太多垃圾评论了,暂时关闭引用通告
Tags:
分类:网站制作 | 218 条评 | 引用: 0 |


发表评论

*

218条评论 - “WordPress写日志时自动保存远程图片的插件”

  1. wangjj 说道:

    二点建议:能不能不是默认的将图片自动保存在uploads目录中,因为多个站用户不一定都在uploads中,希望能够自己设置。
    图片质量和类型能不能自己控制,感觉抓来的图片都比较大。谢谢

  2. 九宫 说道:

    怎么添加水印?

  3. sxz 说道:

    但是实际上是保存发布成功了的。

  4. sxz 说道:

    我本地测试站,提交带有远程图片的文章时,得到以下错误提示:

    Warning: imagettftext() [function.imagettftext]: any2eucjp(): something happen in D:\WEB\xampp\htdocs\wordpress\wp-content\plugins\auto-save-image\inc_photograph.php on line 272

    Warning: Cannot modify header information – headers already sent by (output started at D:\WEB\xampp\htdocs\wordpress\wp-content\plugins\auto-save-image\inc_photograph.php:272) in D:\WEB\xampp\htdocs\wordpress\wp-content\plugins\auto-save-image\auto-save-image.php on line 139

    Warning: Cannot modify header information – headers already sent by (output started at D:\WEB\xampp\htdocs\wordpress\wp-content\plugins\auto-save-image\inc_photograph.php:272) in D:\WEB\xampp\htdocs\wordpress\wp-content\plugins\auto-save-image\auto-save-image.php on line 232

    Warning: Cannot modify header information – headers already sent by (output started at D:\WEB\xampp\htdocs\wordpress\wp-content\plugins\auto-save-image\inc_photograph.php:272) in D:\WEB\xampp\htdocs\wordpress\wp-content\plugins\auto-save-image\auto-save-image.php on line 232

    Warning: Cannot modify header information – headers already sent by (output started at D:\WEB\xampp\htdocs\wordpress\wp-content\plugins\auto-save-image\inc_photograph.php:272) in D:\WEB\xampp\htdocs\wordpress\wp-includes\pluggable.php on line 897

  5. 美国旅游 说道:

    error fetching file: connection failed ()

    这样的错误是不是因为服务器禁用了exec()和fsockopen()的原因?

    • admin 说道:

      和exec()无关,可能是fsockopen()的问题,或者是你的服务器防火墙问题,总之就是你的服务器连不上要抓取的图片

  6. lin 说道:

    我也是刚建立的博客,一直再找这个插件,之前有下载的那个Super Image Plugin,可是在wp3.1里面没有效果,还是你这个插件管用,真的谢谢你啊。

  7. 阿牛 说道:

    正需要这个功能!非常谢谢

  8. wphone 说道:

    谢谢,已经使用了

  9. lock 说道:

    编辑好文章后点发布后出现错误(如下),这是什么原因呢?麻烦解决下
    Warning: mkdir() [function.mkdir]: Permission denied in D:\hosting\7433338\html\wp-content\plugins\auto-save-image\auto-save-image.php on line 366

    Warning: mkdir() [function.mkdir]: No such file or directory in D:\hosting\7433338\html\wp-content\plugins\auto-save-image\auto-save-image.php on line 366

    Warning: mkdir() [function.mkdir]: No such file or directory in D:\hosting\7433338\html\wp-content\plugins\auto-save-image\auto-save-image.php on line 366

    Warning: fclose(): supplied argument is not a valid stream resource in D:\hosting\7433338\html\wp-content\plugins\auto-save-image\auto-save-image.php on line 173

    Warning: getimagesize(../wp-content/uploads/auto_save_image/2011/02/120558ATu.jpg) [function.getimagesize]: failed to open stream: No such file or directory in D:\hosting\7433338\html\wp-content\plugins\auto-save-image\auto-save-image.php on line 178

  10. 嘉林 说道:

    如果能将图片按年/月/日目录保存,此插件就完美了。

  11. 影子 说道:

    我的WP版本是最新的3.0.4,插件无法被启用因为触发了一个严重错误。

    Parse error: syntax error, unexpected $end in E:\other\web_php\blog.i1981\wp-content\plugins\auto-save-image\auto-save-image.php on line 371。

    求解。

  12. [...] -_-|| UPDATE 110127: 已用  auto-save-image [...]

  13. zg 说道:

    请问这款插件如果要保存自定义域里的远程图片,要怎么办?

  14. CYP 说道:

    Warning: imagettftext() [function.imagettftext]: any2eucjp(): something happen in C:\xampp\htdocs\wordpress\wp-content\plugins\auto-save-image\inc_photograph.php on line 272

    Warning: Cannot modify header information – headers already sent by (output started at C:\xampp\htdocs\wordpress\wp-content\plugins\auto-save-image\inc_photograph.php:272) in C:\xampp\htdocs\wordpress\wp-content\plugins\auto-save-image\auto-save-image.php on line 139

    Warning: Cannot modify header information – headers already sent by (output started at C:\xampp\htdocs\wordpress\wp-content\plugins\auto-save-image\inc_photograph.php:272) in C:\xampp\htdocs\wordpress\wp-content\plugins\auto-save-image\auto-save-image.php on line 232

    Warning: imagettftext() [function.imagettftext]: any2eucjp(): something happen in C:\xampp\htdocs\wordpress\wp-content\plugins\auto-save-image\inc_photograph.php on line 272

    Warning: imagettftext() [function.imagettftext]: any2eucjp(): something happen in C:\xampp\htdocs\wordpress\wp-content\plugins\auto-save-image\inc_photograph.php on line 272

    Warning: imagettftext() [function.imagettftext]: any2eucjp(): something happen in C:\xampp\htdocs\wordpress\wp-content\plugins\auto-save-image\inc_photograph.php on line 272

    Warning: imagettftext() [function.imagettftext]: any2eucjp(): something happen in C:\xampp\htdocs\wordpress\wp-content\plugins\auto-save-image\inc_photograph.php on line 272

    Warning: imagettftext() [function.imagettftext]: any2eucjp(): something happen in C:\xampp\htdocs\wordpress\wp-content\plugins\auto-save-image\inc_photograph.php on line 272

    Warning: imagettftext() [function.imagettftext]: any2eucjp(): something happen in C:\xampp\htdocs\wordpress\wp-content\plugins\auto-save-image\inc_photograph.php on line 272

    Warning: fsockopen() [function.fsockopen]: unable to connect to farm5.static.flickr.com:80 (由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。 ) in C:\xampp\htdocs\wordpress\wp-includes\class-snoopy.php on line 1148
    error fetching file: connection failed (10060)
    error url: http://farm5.static.flickr.com/4130/5034731517_a32c8c7eb8_z.jpg

    请问,我用了您的插件出现这些报错,怎么回事呢?还有一个问题,如果遇见链接失败的情况能不能跳过那张图片呢?

  15. 小浩子 说道:

    我安装了自动下载远程图片插件之后,然后启用,但是在发布文章的时候出现这个错误:

    Fatal error: Call to undefined function fsockopen() in F:\usr\LocalUser\hgc25113\blog\wp-includes\class-snoopy.php on line 1142

    不勾选自动下载图片就不会出现这个问题

    请帮忙看一下哦 感激不尽