Этот плагин не тестировался с последними 3 основными выпусками WordPress. Скорее всего, он уже не поддерживается и может быть несовместим с текущими версиями WordPress.

Regenerate Thumbnails

Описание

Regenerate Thumbnails allows you to regenerate all thumbnail sizes for one or more images that have been uploaded to your Media Library.

Это полезно в таких ситуациях, как:

  • 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.

Он также предоставляет возможность удалять старые, неиспользуемые эскизы, чтобы освободить место на сервере.

В память об Алексе Миллсе

В феврале 2019 года Алекс Миллс, автор этого плагина, ушел из жизни. Он оставил после себя ряд плагинов, которые будут поддерживаться Automattic и членами сообщества WordPress. Если этот плагин был вам полезен, пожалуйста, рассмотрите возможность пожертвования в Орегонский университет здравоохранения и науки. Более подробную информацию вы можете найти здесь.

Alternatives

WP-CLI

Если у вас есть доступ к серверу через командную строку, я настоятельно рекомендую использовать WP-CLI вместо этого плагина, так как он быстрее (без накладных расходов на HTTP-запросы) и может быть запущен внутри экрана для тех, у кого много миниатюр. Подробности см. в документации к его команде>media regenerate.

Фотонный модуль Jetpack

Jetpack — плагин от Automattic, создателей WordPress.com. Он дает вашему сайту WordPress, размещенному на собственном хостинге, некоторые функции, доступные сайтам, размещенным на WordPress.com.

Модуль Photon позволяет загружать изображения на вашем сайте из глобальной сети доставки контента WordPress.com (CDN), что должно ускорить загрузку изображений. Однако важно, что он может создавать миниатюры на лету, что означает, что вам никогда не понадобится использовать этот плагин.

Лично я использую Photon на своем собственном сайте.

Отказ от ответственности: я работаю в Automattic, но я бы рекомендовал Photon, даже если бы я там не работал.

Need Help? Found A Bug? Want To Contribute Code?

Поддержка этого плагина осуществляется на форумах WordPress.org.

Исходный код этого плагина доступен на GitHub.

Скриншоты

  • Основной интерфейс плагина.
  • Regenerating in progress.
  • Interface for regenerating a single attachment.
  • Individual images can be regenerated from the media library in list view.
  • They can also be regenerated from the edit attachment screen.

Установка

  1. Перейдите в админ-панель и выберите в меню Плагины -> Добавить новый.
  2. Найдите «Regenerate Thumbnails».
  3. Нажмите установить.
  4. Нажмите активировать.
  5. Перейдите в меню «Инструменты» «Регенерировать миниатюры».

Часто задаваемые вопросы

Соответствует ли этот плагин [GDPR](https://en.wikipedia.org/wiki/General_Data_Protection_Regulation)?

Этот плагин не регистрирует и не передает никаких пользовательских данных. Фактически он даже ничего не делает в пользовательской части вашего сайта, только в административной области. Это значит, что он должен соответствовать, но я не юрист.

Отзывы

12.03.2025 1 ответ
I really like this plug-in. I don’t need it very often but when I do it works great. For example when I changed the image size for my blog thumbnails and thought i would have a headache! It shows nice info about images and which sizes will be generated too. Useful. Thank you.
30.07.2024 1 ответ
Wordpress scales down very big images, adding a ‘full’ image with ‘-scaled’ suffix, and stores the original file and it’s name in the db. RT plugin however regens thumbails based on the ‘scaled’ image, so all the intermediate sizes are re-named. This can break images when combined with offloading etc. Unless I am missing something, this ‘-scaled’ resizing of big images is default wordpress functionality so the RT plugin should handle it properly by using the original image (using functions like wp_get_original_image_url, wp_get_original_image_path) etc, so as not to orphan a whole set of thumbnails, use the wrong full image and generate a new set of intermediate sizes. Eg:These are the currently registered thumbnail sizes, whether they exist for this attachment, and their filenames: thumbnail: 280×178 pixels (cropped to fit) 8C2A3575-scaled-280×178.jpg medium: 300×300 pixels (proportionally resized to fit inside dimensions) 8C2A3575-scaled-300×200.jpg medium_large: 0×0 pixels (thumbnail would be larger than original) large: 720×1200 pixels (proportionally resized to fit inside dimensions) 8C2A3575-scaled-720×480.jpg avatar: 180×180 pixels (cropped to fit) 8C2A3575-scaled-180×180.jpg 1536×1536: 1536×1536 pixels (proportionally resized to fit inside dimensions) 8C2A3575-scaled-1536×1024.jpg 2048×2048: 2048×2048 pixels (proportionally resized to fit inside dimensions) 8C2A3575-scaled-2048×1366.jpg featured-medium: 700×446 pixels (cropped to fit) 8C2A3575-scaled-700×446.jpg featured-large: 1398×1398 pixels (proportionally resized to fit inside dimensions) 8C2A3575-scaled-1398×932.jpg extra-large: 1598×1598 pixels (proportionally resized to fit inside dimensions) 8C2A3575-scaled-1598×1066.jpg The attachment says it also has these thumbnail sizes but they are no longer in use by WordPress. You can probably safely have this plugin delete them, especially if you have this plugin update any posts that make use of this attachment. medium (old): 300×200 pixels 8C2A3575-300×200.jpg large (old): 720×480 pixels 8C2A3575-720×480.jpg thumbnail (old): 280×178 pixels 8C2A3575-280×178.jpg avatar (old): 180×180 pixels 8C2A3575-180×180.jpg 1536×1536 (old): 1536×1024 pixels 8C2A3575-1536×1024.jpg 2048×2048 (old): 2048×1365 pixels 8C2A3575-2048×1365.jpg featured-medium (old): 700×446 pixels 8C2A3575-700×446.jpg featured-large (old): 1398×932 pixels 8C2A3575-1398×932.jpg extra-large (old): 1598×1065 pixels 8C2A3575-1598×1065.jpg cmplz_banner_image: 350×100 pixels 8C2A3575-350×100.jpg
Посмотреть 391 отзыв

Участники и разработчики

«Regenerate Thumbnails» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

«Regenerate Thumbnails» переведён на 37 языков. Благодарим переводчиков за их работу.

Перевести «Regenerate Thumbnails» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

Version 3.1.6

  • Fix: Respect «Skip regenerating existing correctly sized thumbnails» setting.
  • Fix: Don’t delete all thumbnails when deleting old unregistered thumbnails size.

Version 3.1.5

  • Fix: Don’t overwrite ‘All X Attachment’ button label with featured images count.
  • Tested successfully with PHP 8.1.
  • Tested successfully with PHP 8.2.

Version 3.1.4

  • Fix: Don’t attempt to regenerate SVG’s.
  • Bump tested version.
  • Обновление зависимости.

Version 3.1.3

  • Обновление зависимостей подключаемого модуля до последней версии.

Version 3.1.2

  • Используйте wp_get_original_image_path() в WordPress 5.3

Version 3.1.1

  • Minor fix to avoid a divide by zero error when displaying thumbnail filenames.

Version 3.1.0

  • Bring back the ability to delete old, unregistered thumbnail sizes. Support for updating post contents is still disabled (too buggy).
  • Различные улучшения кода, включая устранение неоднозначности локализации строк.

Version 3.0.2

  • Fix slowdown in certain cases in the media library.
  • Fix not being able to regenerate existing thumbnails for single images. Props @idofri.
  • Fix JavaScript error that could occur if the REST API response was unexpected (empty or PHP error).
  • Fix bug related to multibyte filenames.
  • If an image is used as the featured image on multiple posts, only regenerate it once instead of once per post.

Version 3.0.1

  • Temporarily disable the update post functionality. I tested it a lot but it seems there’s still some bugs.
  • Temporarily disable the delete old thumbnails functionality. It seems to work fine but without the update post functionality, it’s not as useful.
  • Try to more gracefully handle cases where there’s missing metadata for attachments.
  • Wait until init to initialize the plugin so themes can filter the plugin’s capability. plugins_loaded is too early.
  • Fix a JavaScript error that would cause the whole regeneration process to stop if an individual image returned non-JSON, such as a 500 error code.
  • Accept GET requests for the regenerate REST API endpoint instead of just POSTs. For some reasons some people’s sites are using GET despite the code saying use POST.
  • Make the attachment ID clickable in error messages.
  • Fetch 25 attachments at a time instead of 5. I was using 5 for testing.
  • PHP notice fixes.

Version 3.0.0

  • Complete rewrite from scratch using Vue.js and the WordPress REST API.

Version 2.2.4

  • Better AJAX response error handling in the JavaScript. This should fix a long-standing bug in this plugin. Props Hew Sutton.

Version 2.2.3

  • Make the capability required to use this plugin filterable so themes and other plugins can change it. Props Jackson Whelan.

Version 2.2.2

  • Don’t check the nonce until we’re sure that the action called was for this plugin. Fixes lots of «Are you sure you want to do this?» error messages.

Version 2.2.1

  • Fix the bottom bulk action dropdown. Thanks Stefan for pointing out the issue!

Version 2.2.0

  • Changes to the Bulk Action functionality were made shortly before the release of WordPress 3.1 which broke the way I implemented the specific multiple image regeneration feature. This version adds to the Bulk Action menu using Javascript as that’s the only way to do it currently.

Version 2.1.3

  • Move the error_reporting() call in the AJAX handler to the beginning so that we’re more sure that no PHP errors are outputted. Some hosts disable usage of set_time_limit() and calling it was causing a PHP warning to be outputted.

Version 2.1.2

  • When regenerating all images, newest images are done first rather than the oldest.
  • Fixed a bug with regeneration error reporting in some browsers. Thanks to pete-sch for reporting the error.
  • Supress PHP errors in the AJAX handler to avoid sending an invalid JSON response. Thanks to pete-sch for reporting the error.
  • Better and more detailed error reporting for when wp_generate_attachment_metadata() fails.

Version 2.1.1

  • Clean up the wording a bit to better match the new features and just be easier to understand.
  • Обновлены скриншоты.

Version 2.1.0

Множество новых функций!

  • Thanks to a lot of jQuery help from Boris Schapira, a failed image regeneration will no longer stop the whole process.
  • The results of each image regeneration is now outputted. You can easily see which images were successfully regenerated and which failed. Was inspired by a concept by Boris.
  • There is now a button on the regeneration page that will allow you to abort resizing images for any reason. Based on code by Boris.
  • You can now regenerate single images from the Media page. The link to do so will show up in the actions list when you hover over the row.
  • You can now bulk regenerate multiple from the Media page. Check the boxes and then select «Regenerate Thumbnails» form the «Bulk Actions» dropdown. WordPress 3.1+ only.
  • The total time that the regeneration process took is now displayed in the final status message.
  • Обновлена версия jQuery UI Progressbar.

Version 2.0.3

  • Switch out deprecated function call.

Version 2.0.2

  • Directly query the database to only fetch what the plugin needs (the attachment ID). This will reduce the memory required as it’s not storing the whole row for each attachment.

Version 2.0.1

  • Случайно оставил check_admin_referer() (проверка определения) незакомментированным.

Version 2.0.0

  • Переписано с нуля. Теперь задействует AJAX-запрос на каждый файл. Нет больше PHP-ошибок максимального времени исполнения и других подобных проблем. Также появился симпатичный прогресс-бар для отображения процесса.

Version 1.1.0

  • Обновления WordPress 2.7 — код + UI. Спасибо jdub и Patrick F.

Version 1.0.0

  • Первая версия.

Upgrade Notice

Support for WordPress 5.3