Regenerate Thumbnails

Açıklama

Regenerate Thumbnails allows you to regenerate all thumbnail sizes for one or more images that have been uploaded to your 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 in order to free up server space.

In Memory of Alex Mills

In February 2019 Alex Mills, the author of this plugin, passed away. He leaves behind a number of plugins which will be maintained by Automattic and members of the WordPress community. If this plugin is useful to you please consider donating to the Oregon Health and Science University. You can find more information here.

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.

Jetpack’s Photon 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.

The Photon 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.

I personally use Photon on my own website.

Disclaimer: I work for Automattic but I would recommend Photon even if I didn’t.

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

Support for this plugin is provided via the WordPress.org forums.

The source code for this plugin is available on GitHub.

Ekran Görüntüleri

  • The main plugin interface.
  • 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.

Yükleme

  1. Go to your admin area and select Plugins → Add New from the menu.
  2. “Regenerate Thumbnails” için arama.
  3. Yüklemek için tıklayın.
  4. Etkinleştirmek için tıklayın.
  5. Navigate to Tools → Regenerate Thumbnails.

SSS

Is this plugin [GDPR](https://en.wikipedia.org/wiki/General_Data_Protection_Regulation) compliant?

This plugin does not log nor transmit any user data. Infact it doesn’t even do anything on the user-facing part of your website, only in the admin area. This means it should be compliant but I’m not a lawyer.

İncelemeler

3 Mart 2024
Thank you for continuing to maintain this plugin in memory of Alex Mills. And it's commendable that WP-CLI and other alternatives are mentioned, which is anything but a matter of course.
24 Ocak 2024 1 yanıt
I used the plugin to regenerate featured images only after changing the theme, worked well with about 2000 images.
19 Temmuz 2023
I just regenerated the thumbnails of 11,500 images with your plugin. It took 3.5 hours and did an excellent job, thank you very much!
3 Temmuz 2023
I can't even remember for how long I've been using this plugin from time to time... Miss you Alex... I'm sure you're smiling from up above 3>
22 Haziran 2023 1 yanıt
So happy I found this - super easy to install and use, once I figured out how to set the size I wanted in Media settings. Did exactly what it was supposed to do, and in no time at all. Very pleased!
384 incelemeyi oku

Katkıda Bulunanlar ve Geliştiriciler

“Regenerate Thumbnails” açık kaynaklı yazılımdır. Aşağıdaki kişiler bu eklentiye katkıda bulunmuşlardır.

Katkıda bulunanlar

“Regenerate Thumbnails” 36 dile çevrildi. Katkıda bulundukları için çevirmenlere teşekkürler.

“Regenerate Thumbnails” eklentisini dilinize çevirin.

Geliştirmeyle ilgilenir misiniz?

Kodu görüntüle, SVN deposuna göz at veya RSS ile geliştirme günlüğüne abone ol.

Değişiklik Kaydı

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

Version 3.1.3

  • Update plugin dependencies to the latest version.

Version 3.1.2

  • Use wp_get_original_image_path() in 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).
  • Various code improvements including string localization disambiguation.

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

  • JavaScript’te daha iyi bir AJAX yanıt hatası işlenir. Bu, bu eklentide uzun süredir devam eden bir hatayı düzeltmelidir. Destek Hew Sutton.

Version 2.2.3

  • Bu eklentiyi filtre özellikli hale getirmek için gerekli olan yeteneği kazandırın; böylece temalar ve diğer eklentiler değişiklik yapabilir. Destek Jackson Whelan .

Version 2.2.2

  • Aradığınız eylemin bu eklenti için yapıldığından emin oluncaya kadar geçici olarak işaretlemeyin. Bir sürü “Bunu yapmak istediğinize emin misiniz?” hata mesajlarını düzeltir.

Version 2.2.1

  • Alt toplu eylem açılır listesini düzelmesi. Sorunu belirten Stefan’a teşekkürler!

Version 2.2.0

  • Toplu İşlem işlevselliğindeki değişiklikler, WordPress 3.1’in piyasaya sürülmesinden kısa bir süre önce yapıldı; bu, belirli çoklu görüntü yenileme özelliğini uyguladığım özelliği bozdu. Şu anda bunu yapmanın tek yolu bu sürümü Javascript’i kullanarak Toplu İşlem menüsüne eklemek.

Version 2.1.3

  • AJAX işleyicisindeki error_reporting () çağrısını başa getirin, böylece hiçbir PHP hatası vermediğinden emin olabilirsiniz. Bazı bilgisayarlar set_time_limit () kullanımını devre dışı bırakıyor ve bunu çağırmak bir PHP uyarısına neden oldu.

Version 2.1.2

  • Tüm görüntüleri yenilerken, en eski görseller yerine önce en yeni görüntüler işlenir.
  • Bazı tarayıcılarda yenilenme hatası bildirimi ile ilgili bir hata düzeltildi. Hata bildirimi için pete-sch’e teşekkürler.
  • Geçersiz bir JSON yanıtı göndermekten kaçınmak için AJAX işleyicisindeki PHP hatalarını baskılayın. Hata bildirimi için peter-sch’e teşekkürler.
  • wp_generate_attachment_metadata () başarısız olduğunda daha iyi ve daha ayrıntılı hata raporlama.

Version 2.1.1

  • Yeni özellikleri daha iyi eşleştirmek ve anlamak için ifadeyi temizleyin.
  • Güncellenmiş ekran görüntüleri.

Version 2.1.0

Bir sürü yeni özellik!

  • Boris Schapira ‘dan bir sürü jQuery yardımı sayesinde başarısız bir görüntü yenilenmesi artık tüm işlemi durdurmayacak.
  • Her görüntü yenilenmesinin sonuçları üretilmiştir. Hangi görüntülerin başarılı bir şekilde yeniden oluşturulduğunu ve başarısız olduğunu kolayca görebilirsiniz. Boris’in konseptinden esinlenildi.
  • Yenileme sayfasında artık herhangi bir nedenle yeniden boyutlandırma görüntülerini iptal etmenize izin verecek bir düğme var. Boris’in koduna göre.
  • Artık Medya sayfasından tek görüntüyü yeniden oluşturabilirsiniz. Bunu yapmak için bağlantı, satırın üzerine geldiğinizde işlem listesinde görünecektir.
  • Artık Medya sayfasından birden çok dosyayı yeniden oluşturabilirsiniz. Kutuları işaretleyin ve “Toplu İşlemler” açılır menüsünden “Küçük Resmi Yeniden Oluştur” u seçin. Sadece WordPress 3.1+.
  • Yenilenme sürecinin aldığı toplam süre son durum mesajında görüntülenir.
  • JQuery UI Progressbar sürümü yükseltildi.

Version 2.0.3

  • Kullanımdan kaldırılan işlev çağrısını değiştir.

Version 2.0.2

  • Veritabanına yalnızca eklentinin ihtiyaç duyduğu şeyleri (ek kimliğini) alması için doğrudan sorgulayın. Bu, her ek için tüm satırı depolamadığı için gerekli bellek miktarını azaltır.

Version 2.0.1

  • I accidentally left a check_admin_referer() (nonce check) commented out.

Version 2.0.0

  • Sıfırdan kaydedildi. Artık yeniden boyutlandırma yapmak için her ek başına bir AJAX isteği kullanıyor. Artık, PHP azami yürütme zamanı hatası ya da buna benzer bir şey yok. Ayrıca, kullanıcıya nasıl gittiğini bilmdirmek için güzel bir ilerleme çubuğu sunar.

Version 1.1.0

  • WordPress 2.7 güncellemeleri – kod + arayüzü. Jdub ve Patrick F.’e teşekkürler

Version 1.0.0

  • Başlangıç sürümü.

Upgrade Notice

Support for WordPress 5.3