Title: ResizeFly
Author: alpipego
Published: <strong>2016 年 5 月 25 日</strong>
Last modified: 2020 年 12 月 17 日

---

搜索插件

![](https://ps.w.org/resizefly/assets/banner-772x250.png?rev=2121683)

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

![](https://ps.w.org/resizefly/assets/icon-256x256.png?rev=2121683)

# ResizeFly

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

[下载](https://downloads.wordpress.org/plugin/resizefly.3.2.6.zip)

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

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

## 描述

Instead of creating image sizes on upload, this plugin only creates them when requested.

Normally after activating a new theme or plugin that adds new image sizes, you will
have to use a tool like [Regenerate Thumbnails](https://wordpress.org/plugins/regenerate-thumbnails/)
to create the newly registered image sizes. Depending on the size of the media library
and the “power” of your server, this might take a while or even take several tries
to process all your images; and in the end, you don’t even know if you’ll need all
of the resized images.

This plugin takes care of the resizing dynamically and creates the requested size
the moment it is first requested—and only when it is requested.

#### Support

For users: Please use the support forums on [wordpress.org](https://wordpress.org/support/plugin/resizefly)

For developers: Head over to the [Github repository](https://github.com/alpipego/resizefly/)
For everything else, find me on [twitter](https://twitter.com/alpipego) or on slack

## 安装

 1. Upload the plugin to your plugins directory (usually `wp-content/plugins`)
 2. Make sure you have Pretty Permalinks enabled
 3. Activate the plugin

The plugin handles the images from here on. The resized images are saved in a subfolder
inside your uploads directory.

#### Prerequisites

You’ll need at least PHP 5.5, WordPress 4.7 and either GD or Imagick on your server.

#### Uninstalling

If you want to uninstall the plugin for good, make sure to regenerate your image
thumbnails/sizes afterward using [Regenerate Thumbnails](https://wordpress.org/plugins/regenerate-thumbnails/)
or similar.

## 常见问题

### Why does this not work when using NGINX?

Often your NGINX is configured in a way to serve the image as a static resource 
and in case of failure throw a 404 Not Found error.

To work around this, make sure the request is sent to WordPress when the image cannot
be found.

Add a directive like:

    ```
    location ~* (/[^/]+/)?uploads/(.+\.(png|gif|jpe?g)) {
        try_files $uri $uri/ /index.php?q=$uri&$args;
        expires max;
        log_not_found off;
        access_log off;
    }
    ```

If you have one long location directive listing all the static file formats (css,
js, zip, etc.), you can also just drop the `try_files $uri $uri/ /index.php?q=$uri&
$args;` in there.

### Why is there a `resizefly-duplicate` directory in my uploads folder?

The plugin stores an optimized duplicate of each image in this folder. The reason
for this is, that image resizing puts a strain on your server and uses comparably
a lot of resources. To minimize this ResizeFly creates an optimized copy from which
the smaller image sizes will be created.

## 评价

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

### 󠀁[Best WP Image Sizes Solution!](https://wordpress.org/support/topic/best-wp-image-sizes-solution/)󠁿

 [hatisenang](https://profiles.wordpress.org/hatisenang/) 2020 年 4 月 22 日 1 回复

Thank you so much for such a brilliant solution for WordPress Image Sizes! This 
should be added to the WP-Core in my opinion. No more painful time consuming regenerating
image sizes. Yay! I love all the settings as well! It’s so nice to be able to see
all of the registered image sizes right there in on place plus the option to Restrict
Image Sizes is just wonderful! Oh and on top of that we can even add new image sizes
right there on the settings page! Just wow! Thank you so much. GBY.

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

### 󠀁[Well done](https://wordpress.org/support/topic/well-done-467/)󠁿

 [lennardv](https://profiles.wordpress.org/lennardv/) 2019 年 2 月 19 日 1 回复

The idea to only generate thumbnails that are really needed, with the added flexibility
of specifying sizes dynamically, is quite obvious and a real miss in wordpress. 
Sites can get very big when all sorts of plugins add their image sizes to the the
website, creating a lot of unused images. This is plugin is very well written and
works great! I would recommend it.

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

### 󠀁[Spart Speicherplatz auf dem Server und bei BackUps](https://wordpress.org/support/topic/spart-speicherplatz-auf-dem-server-und-bei-backups/)󠁿

 [lembach](https://profiles.wordpress.org/lembach/) 2018 年 2 月 11 日

Nach umfangreichen Änderungen an meiner Website (mehrmals neues Theme) u.v.a. sind
meine BackUp-Dateien grössenmässig aus allen Nähten geplatzt. Alle nicht mehr benötigten
Bildgrössen per FTP von Hand zu löschen hat, wie zu erwarten war, schnell zu Fehlern
geführt. Auf der Suche nach einer Lösung per Plugin bin ich zu meinem Glück auf 
ResizeFly von Alexander Goller gestossen. Am 23.01.2018 habe ich einen Fehler gemeldet,
schon am nächsten Tag kam das Bugfix zurück. Am 9.2.2018 bemerkte ich einen anderen
Fehler und heute morgen (11.2.2018) war er schon beseitigt. Das ist Support der 
Extraklasse. Mit der Version 2.0.3 bin ich rundum glücklich. Wenn ich jetzt ein 
BackUp der Medien machen will, lösche ich einfach den Medien-Cache (also alle skalierten
Bildgrössen) und hab damit als Downloadvolumen nur die ursprünglich hochgeladenen
Dateien und sonst keinerlei Überhang. Die notwendigen umgerechneten Bildgrößen bauen
sich ja automatisch wieder auf, sobald sie im Browser angezeigt werden sollen. Vielen
Dank Alex

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

### 󠀁[Nice idea!](https://wordpress.org/support/topic/nice-idea-35/)󠁿

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

Works as described!

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

### 󠀁[Great plugin](https://wordpress.org/support/topic/great-plugin-10193/)󠁿

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

Thank You!!!

 [ 阅读所有5条评价 ](https://wordpress.org/support/plugin/resizefly/reviews/)

## 贡献者及开发者

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

贡献者

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

「ResizeFly」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/resizefly/contributors)
为本插件所做的贡献。

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

### 对开发感兴趣吗?

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

## 更新日志

#### 3.2.6

 * fix issue with trying to add number to string
 * revert methods to get image id to prevent db strain

see https://github.com/alpipego/resizefly/releases for full changelog

## 额外信息

 *  版本 **3.2.6**
 *  最后更新：**5 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 4.7.0 或更高版本 **
 *  已测试的最高版本为 **5.6.17**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/resizefly/) 和 [German](https://de.wordpress.org/plugins/resizefly/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/resizefly)
 * 标签
 * [Dynamic](https://cn.wordpress.org/plugins/tags/dynamic/)[dynamic images](https://cn.wordpress.org/plugins/tags/dynamic-images/)
   [image](https://cn.wordpress.org/plugins/tags/image/)[jpg](https://cn.wordpress.org/plugins/tags/jpg/)
   [png](https://cn.wordpress.org/plugins/tags/png/)
 *  [高级视图](https://cn.wordpress.org/plugins/resizefly/advanced/)

## 评级

 5 星（最高 5 星）。

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

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

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

## 贡献者

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

## 支持

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

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