PHPackages                             viper007bond/regenerate-thumbnails - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. viper007bond/regenerate-thumbnails

ActiveWordpress-plugin[Image &amp; Media](/categories/media)

viper007bond/regenerate-thumbnails
==================================

Regenerate the thumbnails for one or more of your image uploads. Useful when changing their sizes or your theme.

v3.1.6(2y ago)14012.2k↓50%56[6 issues](https://github.com/Viper007Bond/regenerate-thumbnails/issues)[15 PRs](https://github.com/Viper007Bond/regenerate-thumbnails/pulls)GPL-2.0-or-laterPHPPHP &gt;=5.2.4

Since Dec 15Pushed 1y ago9 watchersCompare

[ Source](https://github.com/Viper007Bond/regenerate-thumbnails)[ Packagist](https://packagist.org/packages/viper007bond/regenerate-thumbnails)[ Docs](https://alex.blog/wordpress-plugins/regenerate-thumbnails/)[ RSS](/packages/viper007bond-regenerate-thumbnails/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (25)Used By (0)

Regenerate Thumbnails
=====================

[](#regenerate-thumbnails)

[![Travis CI Build Status](https://camo.githubusercontent.com/0d60abad329dd0d8362be57c693925650b4867b6fae6ea3cf5a9f7cbd4a766a6/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f5669706572303037426f6e642f726567656e65726174652d7468756d626e61696c732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Viper007Bond/regenerate-thumbnails)[![WordPress Plugin Version](https://camo.githubusercontent.com/879ded2c9e2c5f1dc059d944d9a45a1c9113afaa14f9e64cb06ab59e92697f80/68747470733a2f2f696d672e736869656c64732e696f2f776f726470726573732f706c7567696e2f762f726567656e65726174652d7468756d626e61696c732e7376673f7374796c653d666c61742d737175617265)](https://wordpress.org/plugins/regenerate-thumbnails/)[![WordPress Tested](https://camo.githubusercontent.com/e435794488bc1b3493e3ad428202e2a05e3398897cd0cfd7804d479d097e7819/68747470733a2f2f696d672e736869656c64732e696f2f776f726470726573732f762f726567656e65726174652d7468756d626e61696c732e7376673f7374796c653d666c61742d737175617265)](https://wordpress.org/plugins/regenerate-thumbnails/)[![WordPress Plugin Downloads](https://camo.githubusercontent.com/366ed15b476890a05e4a2cc7563db663a7adb6683345aa7ddc58914a6c063296/68747470733a2f2f696d672e736869656c64732e696f2f776f726470726573732f706c7567696e2f64742f726567656e65726174652d7468756d626e61696c732e7376673f7374796c653d666c61742d737175617265)](https://wordpress.org/plugins/regenerate-thumbnails/advanced/)[![WordPress Plugin Rating](https://camo.githubusercontent.com/022900fe9324372aab586e2092003edde37519a232bbe38d168f47990743735e/68747470733a2f2f696d672e736869656c64732e696f2f776f726470726573732f706c7567696e2f722f726567656e65726174652d7468756d626e61696c732e7376673f7374796c653d666c61742d737175617265)](https://wordpress.org/support/plugin/regenerate-thumbnails/reviews/)

Regenerate Thumbnails is a WordPress plugin that will regenerate all thumbnail sizes for one or more images that have been uploaded to your WordPress Media Library.

This is useful for situations such as:

- A new thumbnail size has been added and you want past uploads to have a thumbnail in that size.
- You've changed the dimensions of an existing thumbnail size, for example via Settings → Media.
- You've switched to a new WordPress theme that uses featured images of a different size.

It also offers the ability to delete old, unused thumbnails as well as update the content of posts to use the new thumbnail sizes.

Alternatives
------------

[](#alternatives)

### WP-CLI

[](#wp-cli)

If you have command line access to your server, I highly recommend using [WP-CLI](https://wp-cli.org/) instead of this plugin as it's faster (no HTTP requests overhead) and can be run inside of a `screen` for those with many thumbnails. For details, see the documentation of its [`media regenerate` command](https://developer.wordpress.org/cli/commands/media/regenerate/).

### Jetpack's Site Accelerator Module

[](#jetpacks-site-accelerator-module)

[Jetpack](https://jetpack.com/) is a plugin by Automattic, makers of WordPress.com. It gives your self-hosted WordPress site some of the functionality that is available to WordPress.com-hosted sites.

[The Site Accelerator Module](https://jetpack.com/support/site-accelerator/) makes the images on your site be served from WordPress.com's global content delivery network (CDN) which should speed up the loading of images. Importantly though it can create thumbnails on the fly which means you'll never need to use this plugin.

Building The Plugin
-------------------

[](#building-the-plugin)

The latest release can be [downloaded from WordPress.org](https://wordpress.org/plugins/regenerate-thumbnails/), but if you wish to build your own copy, here's how:

1. Make sure you have [Node.js](https://nodejs.org/) installed.
2. Clone this repository inside your `plugins` directory:

    ```
    $ git clone https://github.com/automattic/regenerate-thumbnails.git
    $ cd regenerate-thumbnails

    ```
3. Install [yarn](https://yarnpkg.com/) package manager. It's like npm but better.
4. Install the other dependencies:

    ```
    yarn

    ```
5. Build the plugin's JavaScript file in production mode:

    ```
    yarn build-production

    ```
6. Activate the plugin and visit Tools → Regenerate Thumbnails.

### Development Mode

[](#development-mode)

If you're looking to make modifications to this plugin's Vue.js code, run the following command:

```
yarn watch

```

This will do the following things:

- Automatically rebuild the `build.js` file whenever any of the source files change.
- Put Vue.js in development mode which will allow you to use [a browser extension](https://github.com/vuejs/vue-devtools#vue-devtools) to help with debugging.
- Spawn a [Browsersync](https://www.browsersync.io/) server at  that will load a proxied version of your development WordPress install that automatically refresh the page in your browser when changes are made to files. Also if you open the site in multiple browsers, it will sync your navigation and scrolling between them. By default, this assumes that your WordPress install lives at `localhost`. If this is not the case (for example you're using [Varying Vagrant Vagrants](https://varyingvagrantvagrants.org/)), then edit `browsersync-config.json`.

Alternatively if you just want to manually build a development copy of the Javascript, then run this command:

```
yarn build

```

Unit Tests
----------

[](#unit-tests)

To run the [PHPUnit](https://phpunit.de/) unit tests, first run the `install-wp-tests.sh` script from the `bin` directory. Then simply run `phpunit` from the plugin's root directory.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community27

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 86.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~295 days

Recently: every ~420 days

Total

8

Last Release

1001d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/944ed2dbf66df49bca75105b749133f7bb99383e403bd56da1a4fae3289599c8?d=identicon)[Viper007Bond](/maintainers/Viper007Bond)

---

Top Contributors

[![Viper007Bond](https://avatars.githubusercontent.com/u/406254?v=4)](https://github.com/Viper007Bond "Viper007Bond (387 commits)")[![donnchawp](https://avatars.githubusercontent.com/u/5656673?v=4)](https://github.com/donnchawp "donnchawp (11 commits)")[![alexsanford](https://avatars.githubusercontent.com/u/842193?v=4)](https://github.com/alexsanford "alexsanford (7 commits)")[![aaronfc](https://avatars.githubusercontent.com/u/799065?v=4)](https://github.com/aaronfc "aaronfc (7 commits)")[![clementduncan](https://avatars.githubusercontent.com/u/1780697?v=4)](https://github.com/clementduncan "clementduncan (6 commits)")[![pedro-mendonca](https://avatars.githubusercontent.com/u/7371591?v=4)](https://github.com/pedro-mendonca "pedro-mendonca (6 commits)")[![renatho](https://avatars.githubusercontent.com/u/876340?v=4)](https://github.com/renatho "renatho (6 commits)")[![jom](https://avatars.githubusercontent.com/u/68693?v=4)](https://github.com/jom "jom (3 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![yscik](https://avatars.githubusercontent.com/u/176949?v=4)](https://github.com/yscik "yscik (2 commits)")[![odie2](https://avatars.githubusercontent.com/u/9401878?v=4)](https://github.com/odie2 "odie2 (2 commits)")[![onubrooks](https://avatars.githubusercontent.com/u/26160845?v=4)](https://github.com/onubrooks "onubrooks (2 commits)")[![gikaragia](https://avatars.githubusercontent.com/u/53191348?v=4)](https://github.com/gikaragia "gikaragia (2 commits)")[![claudiosanches](https://avatars.githubusercontent.com/u/1264099?v=4)](https://github.com/claudiosanches "claudiosanches (1 commits)")[![ironprogrammer](https://avatars.githubusercontent.com/u/824344?v=4)](https://github.com/ironprogrammer "ironprogrammer (1 commits)")[![jsalinas](https://avatars.githubusercontent.com/u/112225?v=4)](https://github.com/jsalinas "jsalinas (1 commits)")[![mh35](https://avatars.githubusercontent.com/u/1467893?v=4)](https://github.com/mh35 "mh35 (1 commits)")[![donnapep](https://avatars.githubusercontent.com/u/1190420?v=4)](https://github.com/donnapep "donnapep (1 commits)")

---

Tags

javascriptphpvuejswordpresswordpress-pluginpluginwordpressThumbnails

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/viper007bond-regenerate-thumbnails/health.svg)

```
[![Health](https://phpackages.com/badges/viper007bond-regenerate-thumbnails/health.svg)](https://phpackages.com/packages/viper007bond-regenerate-thumbnails)
```

###  Alternatives

[wp-sync-db/wp-sync-db-media-files

WP Sync DB Media File Addon for WP Sync DB

535151.4k](/packages/wp-sync-db-wp-sync-db-media-files)[humanmade/gaussholder

Fast and lightweight image previews for WordPress

196119.7k](/packages/humanmade-gaussholder)[mindkomm/timmy

Advanced image manipulation for Timber.

17735.6k](/packages/mindkomm-timmy)[toinekamps/responsive-pics

Responsive Pics is a Wordpress tool for resizing images on the fly.

831.2k](/packages/toinekamps-responsive-pics)[asgardcms/media-module

Media module for AsgardCMS. Handles the media library.

1130.6k2](/packages/asgardcms-media-module)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
