Title: OTF Regenerate Thumbnails
Author: Benjamin Intal
Published: <strong>2015 年 1 月 26 日</strong>
Last modified: 2015 年 2 月 28 日

---

搜索插件

![](https://ps.w.org/otf-regenerate-thumbnails/assets/banner-772x250.png?rev=1076166)

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

![](https://ps.w.org/otf-regenerate-thumbnails/assets/icon-256x256.png?rev=1076166)

# OTF Regenerate Thumbnails

 作者：[Benjamin Intal](https://profiles.wordpress.org/bfintal/)

[下载](https://downloads.wordpress.org/plugin/otf-regenerate-thumbnails.0.3.zip)

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

 [支持](https://wordpress.org/support/plugin/otf-regenerate-thumbnails/)

## 描述

This plugin behaves similarly to [Regenerate Thumbnails](https://wordpress.org/plugins/regenerate-thumbnails/)
except that images are resized automatically / on the fly, when they are used. Once
created, they won’t be processed again.

Your thumbnails will now resize when:

 * Image Sizes in **Settings > Media** is modified,
 * Switching themes & plugins with different thumbnail / featured image sizes

No settings pages, just install and activate and things should work right away.

Report bugs and help out in the code from the [Github repository](https://github.com/gambitph/WP-OTF-Regenerate-Thumbnails)

#### What are you talking about?

Test it out. In your normal WordPress website set up, create a gallery using the**
Add Media** button while editing a post or page and use thumbnails. Afterwards, 
check out your gallery.

Notice the size of your thumbnails, most likely they’re **150 x 150**. Do you see
it? Great.

Now head over to **Settings > Media** and change your thumbnail size to something
cooler, something rectangular, let’s try **400 x 200**. Save it.

Go back to your gallery that you previously created and refresh your browser. Most
likely you _won’t_ be seeing **400 x 200** thumbnails there.

OTF Regenerate Thumbnails fixes this for you.

#### Usage

OTF Regenerate Thumbnails should work right away, and your images should get resized
when the dimensions get changed.

**For developers & tinkerers, ensuring your images get resized properly requires
you to use WordPress’ image functions to display featured images and image attachments.**
Don’t worry, this is a good thing.

Make sure you use these WordPress functions **every time you display images**:

 * [`wp_get_attachment_image_src`](https://codex.wordpress.org/Function_Reference/wp_get_attachment_image_src)
 * [`wp_get_attachment_image`](https://codex.wordpress.org/Function_Reference/wp_get_attachment_image)
 * [`the_post_thumbnail`](https://codex.wordpress.org/Function_Reference/the_post_thumbnail)
 * [`get_the_post_thumbnail`](https://codex.wordpress.org/Function_Reference/get_the_post_thumbnail)

You can also add size _names_ using [`add_image_size`](https://codex.wordpress.org/Function_Reference/add_image_size)

#### Features

 * Creates Resizes thumbnails on the fly
 * Handles Image Size settings changes in **Settings > Media**
 * Handles thumbnail / image size changes introduced by switching themes & plugins
 * Works automatically, no setup needed
 * All calls to `the_post_thumbnail` and other thumbnail functions are handled automatically
 * Handles image sizes created from `add_image_size`,
 * Handles [2-item array sizes](https://codex.wordpress.org/Function_Reference/the_post_thumbnail)

## 屏幕截图

[⌊This is my Settings > Media screen, the thumbnails specified as 80 x 80⌉⌊This 
is my Settings > Media screen, the thumbnails specified as 80 x 80⌉[

This is my Settings > Media screen, the thumbnails specified as 80 x 80

[⌊This is what my gallery looks like. Yup, it's 80 x 80⌉⌊This is what my gallery
looks like. Yup, it's 80 x 80⌉[

This is what my gallery looks like. Yup, it’s 80 x 80

[⌊I just changed my Settings > Media thumbnails to 400 x 200⌉⌊I just changed my 
Settings > Media thumbnails to 400 x 200⌉[

I just changed my Settings > Media thumbnails to 400 x 200

[⌊But, my gallery thumbnails still look like it's all 80 x 80 :(⌉⌊But, my gallery
thumbnails still look like it's all 80 x 80 :(⌉[

But, my gallery thumbnails still look like it’s all 80 x 80 🙁

[⌊After turning on the OTF Regenerate Thumbnails, my gallery now shows 400 x 200
thumbnails :)⌉⌊After turning on the OTF Regenerate Thumbnails, my gallery now shows
400 x 200 thumbnails :)⌉[

After turning on the OTF Regenerate Thumbnails, my gallery now shows 400 x 200 thumbnails
🙂

## 安装

 1. Head over to Plugins > Add New in the admin
 2. Search for “OFT Regenerate Thumbnails”
 3. Install & activate the plugin

## 常见问题

 * [OTF Regenerate Thumbnails GitHub Repository](https://github.com/gambitph/WP-OTF-Regenerate-Thumbnails)
 * [Issue Tracker](https://github.com/gambitph/WP-OTF-Regenerate-Thumbnails/issues)

  Installation Instructions

 1. Head over to Plugins > Add New in the admin
 2. Search for “OFT Regenerate Thumbnails”
 3. Install & activate the plugin

## 评价

![](https://secure.gravatar.com/avatar/91decbb78249067ab9cf8b660edf593367138c72f52264d366bcbf6e7dd8eaaf?
s=60&d=retro&r=g)

### 󠀁[must-have for theme/plugins development.](https://wordpress.org/support/topic/must-have-for-themeplugins-development/)󠁿

 [wube](https://profiles.wordpress.org/wujek_bogdan/) 2017 年 3 月 5 日

just works.

![](https://secure.gravatar.com/avatar/efdf0291b8c9bff0d2b1833446dedb1ad48198f9c3f82294e32f5ff617e972e3?
s=60&d=retro&r=g)

### 󠀁[Such a shame it’s only compatible up to: 4.1.13](https://wordpress.org/support/topic/such-a-shame-its-only-compatible-up-to-4-1-13/)󠁿

 [Wendihihihi](https://profiles.wordpress.org/wendihihihi/) 2016 年 12 月 11 日 
1 回复

I would love to use it…

![](https://secure.gravatar.com/avatar/cdd3ab88d2aa68c54e9962ccf19506f9583af82b5d5500d1c867ae1785076229?
s=60&d=retro&r=g)

### 󠀁[Great Plugin to Manage Thumbnails](https://wordpress.org/support/topic/great-plugin-to-manage-thumbnails/)󠁿

 [waqarpro](https://profiles.wordpress.org/waqarpro/) 2016 年 9 月 14 日

This plugin resizes the thumbnails properly when wordpress theme does not.

![](https://secure.gravatar.com/avatar/36b82982ea10f17a0e9c98ea877e7f123a9caf7e2f47d129505e9426bce1044f?
s=60&d=retro&r=g)

### 󠀁[It seems like magic](https://wordpress.org/support/topic/it-seems-like-magic/)󠁿

 [viery365](https://profiles.wordpress.org/viery365/) 2016 年 9 月 3 日

I've just used it for the first time after trying several resizing plugins and it
is hard to believe how this on works. We just don't do anything. After installing
this plugin you just relax and enjoy your re-sizings:)

![](https://secure.gravatar.com/avatar/8d56b0d18302e9166c13e5c7e60645ad4e40527183bb6c2772945d07cfc120c0?
s=60&d=retro&r=g)

### 󠀁[Front end – must have](https://wordpress.org/support/topic/front-end-must-have/)󠁿

 [MortenPeterAndersen](https://profiles.wordpress.org/mortenpeterandersen/) 2016
年 9 月 3 日

a must have plugin coding themes

![](https://secure.gravatar.com/avatar/b7dbc76934c3ca484e3b4caa7e9784918451a304fbc19bcd8ae77739cf414ec1?
s=60&d=retro&r=g)

### 󠀁[Very useful](https://wordpress.org/support/topic/very-useful-761/)󠁿

 [Rian Rietveld](https://profiles.wordpress.org/rianrietveld/) 2016 年 9 月 3 日

Nice plugin, very useful. Also works on a network install. Thanks!

 [ 阅读所有19条评价 ](https://wordpress.org/support/plugin/otf-regenerate-thumbnails/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ Benjamin Intal ](https://profiles.wordpress.org/bfintal/)

[帮助将「OTF Regenerate Thumbnails」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/otf-regenerate-thumbnails)

### 对开发感兴趣吗?

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

## 更新日志

#### 0.3

 * Add new image size to attachment meta so WordPress can perform actions on the
   image

#### 0.2

 * Bug fix: image size names which do not exist

#### 0.1

 * First release

## 额外信息

 *  版本 **0.3**
 *  最后更新：**9 年前**
 *  活跃安装数量 **4,000+**
 *  WordPress 版本 ** 3.8 或更高版本 **
 *  已测试的最高版本为 **4.1.42**
 *  语言
 * [English (US)](https://wordpress.org/plugins/otf-regenerate-thumbnails/)
 * 标签
 * [automatic](https://cn.wordpress.org/plugins/tags/automatic/)[regenerate](https://cn.wordpress.org/plugins/tags/regenerate/)
   [resize](https://cn.wordpress.org/plugins/tags/resize/)[thumbnail](https://cn.wordpress.org/plugins/tags/thumbnail/)
   [thumbnails](https://cn.wordpress.org/plugins/tags/thumbnails/)
 *  [高级视图](https://cn.wordpress.org/plugins/otf-regenerate-thumbnails/advanced/)

## 评级

 4.6 星（最高 5 星）。

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

[您的评价](https://wordpress.org/support/plugin/otf-regenerate-thumbnails/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/otf-regenerate-thumbnails/reviews/)

## 贡献者

 *   [ Benjamin Intal ](https://profiles.wordpress.org/bfintal/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/otf-regenerate-thumbnails/)

## 捐助

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

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=D2MK28E7BDLHC)