Title: AutoThumb
Author: maff
Published: <strong>2009 年 4 月 18 日</strong>
Last modified: 2012 年 2 月 6 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/autothumb.svg)

# AutoThumb

 作者：[maff](https://profiles.wordpress.org/maff/)

[下载](https://downloads.wordpress.org/plugin/autothumb.0.6.1.zip)

 * [详情](https://cn.wordpress.org/plugins/autothumb/#description)
 * [评价](https://cn.wordpress.org/plugins/autothumb/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/autothumb/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/autothumb/#developers)

 [支持](https://wordpress.org/support/plugin/autothumb/)

## 描述

The plugin is actually just a port of a plugin/snippet I wrote for [MODx](http://www.modxcms.com)
a while ago ([see here](http://modxcms.com/phpThumb-Package-1522.html)). It scans
your content’s source code for <img> tags with width and height attributes and passes
them to [phpThumb](http://phpthumb.sourceforge.net/), a great PHP image editing 
library, which handles the resizing and editing of the image. Additionally, by passing
parameters to phpThumb using a query string, it’s possible to edit the image in 
several ways (take a look at [phpThumb’s demos](http://phpthumb.sourceforge.net/demo/demo/phpThumb.demo.demo.php)).

The simplest way to get resized images is to specify width/height attibutes in your
HTML. AutoThumb will use the given values and remove the attributes from your page’s
output. When you take a look at the URLs of the example images found on the plugin
home page, you will see that the <img>-tag’s src-attribute points to a file called
image.php in the plugin’s directory. This file takes the image source and several
other parameters and passes them to phpThumb, which will generate and output the
final image (of course images will be cached).

To prevent evil people playing with the query string and letting your server generate
tons of different images, the plugin generates a hash which is a combination of 
the query string and a secret password you set in phpThumb’s config file. So every
call with different parameters (even the same image with different sizes) has another
unique hash and it’s not possible to generate new images without knowing the secret
password.

See the [plugin page](http://ailoo.net/projects/autothumb/) for more details on 
the plugin.

All development is done on [GitHub](https://github.com/maff/wp-autothumb). If you
have ideas, enhancements, etc. feel free to fork the project and send a pull request.

For any issues please use the [Issue Tracker](https://github.com/maff/wp-autothumb/issues).

## 安装

 1. Download the .zip file and extract it.
 2. Upload the plugin to your `/wp-content/plugins/` directory and make sure your web
    server has write access to the cache folder and the config file.
 3. Activate the plugin.
 4. Go to Settings – AutoThumb and setup the plugin
 5. Have fun!

## 评价

此插件暂无评价。

## 贡献者及开发者

「AutoThumb」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ maff ](https://profiles.wordpress.org/maff/)

[帮助将「AutoThumb」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/autothumb)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/autothumb/)，查看[SVN仓库](https://plugins.svn.wordpress.org/autothumb/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/autothumb/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/autothumb/)。

## 额外信息

 *  版本 **0.6.1**
 *  最后更新：**14 年前**
 *  活跃安装数量 **80+**
 *  WordPress 版本 ** 2.7 或更高版本 **
 *  已测试的最高版本为 **3.3.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/autothumb/)
 * 标签
 * [images](https://cn.wordpress.org/plugins/tags/images/)[library](https://cn.wordpress.org/plugins/tags/library/)
   [phpthumb](https://cn.wordpress.org/plugins/tags/phpthumb/)[resize](https://cn.wordpress.org/plugins/tags/resize/)
   [thumbnails](https://cn.wordpress.org/plugins/tags/thumbnails/)
 *  [高级视图](https://cn.wordpress.org/plugins/autothumb/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/autothumb/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/autothumb/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/autothumb/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/autothumb/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/autothumb/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/autothumb/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/autothumb/reviews/)

## 贡献者

 *   [ maff ](https://profiles.wordpress.org/maff/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/autothumb/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://ailoo.net/about)