2017 © Pedro Peláez
 

wordpress-plugin regenerate-thumbnails

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

image

viper007bond/regenerate-thumbnails

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

  • Wednesday, June 6, 2018
  • by Viper007Bond
  • Repository
  • 6 Watchers
  • 69 Stars
  • 180 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 30 Forks
  • 8 Open issues
  • 7 Versions
  • 34 % Grown

The README.md

Regenerate Thumbnails

Travis CI Build Status WordPress Plugin Version WordPress Tested WordPress Plugin Downloads WordPress Plugin Rating, (*1)

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., (*2)

This is useful for situations such as:, (*3)

  • 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., (*4)

Alternatives

WP-CLI

If you have command line access to your server, I highly recommend using WP-CLI 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., (*5)

Jetpack's Site Accelerator Module

Jetpack 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., (*6)

The Site Accelerator Module 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., (*7)

Building The Plugin

The latest release can be downloaded from WordPress.org, but if you wish to build your own copy, here's how:, (*8)

  1. Make sure you have Node.js installed., (*9)

  2. Clone this repository inside your plugins directory:, (*10)

    $ git clone https://github.com/automattic/regenerate-thumbnails.git
    $ cd regenerate-thumbnails
    
  3. Install yarn package manager. It's like npm but better., (*11)

  4. Install the other dependencies:, (*12)

    yarn
    
  5. Build the plugin's JavaScript file in production mode:, (*13)

    yarn build-production
    
  6. Activate the plugin and visit Tools → Regenerate Thumbnails., (*14)

Development Mode

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

yarn watch

This will do the following things:, (*16)

  • 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 to help with debugging.
  • Spawn a Browsersync server at http://localhost:3030/ 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), then edit browsersync-config.json.

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

yarn build

Unit Tests

To run the PHPUnit unit tests, first run the install-wp-tests.sh script from the bin directory. Then simply run phpunit from the plugin's root directory., (*18)

The Versions

06/06 2018

dev-master

9999999-dev https://alex.blog/wordpress-plugins/regenerate-thumbnails/

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

  Sources   Download

GPL-2.0+ GPL-2.0-or-later

The Requires

 

The Development Requires

plugin wordpress thumbnails

08/04 2018

dev-greenkeeper/initial

dev-greenkeeper/initial https://alex.blog/wordpress-plugins/regenerate-thumbnails/

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

  Sources   Download

GPL-2.0-or-later

The Requires

 

The Development Requires

plugin wordpress thumbnails

20/03 2018

dev-fix/update-posts

dev-fix/update-posts https://alex.blog/wordpress-plugins/regenerate-thumbnails/

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

  Sources   Download

GPL-2.0-or-later

The Requires

 

The Development Requires

plugin wordpress thumbnails

28/01 2018

v3.0.2

3.0.2.0 https://alex.blog/wordpress-plugins/regenerate-thumbnails/

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

  Sources   Download

GPL-2.0-or-later

The Requires

 

The Development Requires

plugin wordpress thumbnails

30/12 2017

dev-try/image-editor-choose

dev-try/image-editor-choose https://alex.blog/wordpress-plugins/regenerate-thumbnails/

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

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

plugin wordpress thumbnails

23/12 2017

v3.0.1

3.0.1.0 https://alex.blog/wordpress-plugins/regenerate-thumbnails/

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

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

plugin wordpress thumbnails

16/12 2017

v3.0.0

3.0.0.0 https://alex.blog/wordpress-plugins/regenerate-thumbnails/

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

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

plugin wordpress thumbnails