Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
Puchar WPB
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Jak zregenerować miniaturki lub nowe rozmiary obrazków w WordPress?

Niedawno czytelnik WPBeginner poprosił nas o pomoc w związku z problemem z obrazkami na jego witrynie internetowej. Wszystko zaczęło się, gdy użytkownik przełączył się na nowy motyw, a motyw wyświetlał miniaturki obok zajawki wpisu. Problem polegał na tym, że wszystkie nowe obrazki, które zostały przesłane po włączaniu motywu, wyglądały dobrze, ale wszystkie stare miniaturki wyglądały brzydko i były zniekształcone. Użytkownik próbował dostosować rozmiary obrazków w Ustawieniach ” Media, ale nie rozwiązało to problemu. W tym artykule pokażemy, jak zregenerować miniaturki lub nowe rozmiary obrazków w WordPress.

How to regenerate thumbnails and new image sizes in WordPress

Domyślnie, gdy przesyłasz obrazek do WordPressa, tworzy on różne rozmiary i zapisuje je w katalogu uploads. Wcześniej opublikowaliśmy poradnik na temat tworzenia dodatkowych rozmiarów obrazków w WordPress. Wiele motywów WordPress korzysta z tej funkcji i definiuje nowe rozmiary obrazów, ale problem polega na tym, że te nowe rozmiary obrazów są stosowane tylko do obrazów, które są włączane po włączaniu motywu.

Aby rozwiązać ten problem, należy wygenerować nowe rozmiary dla wszystkich wcześniej przesłanych obrazków. Proces ten jest często nazywany regeneracją miniaturek.

Film poradnik

Subscribe to WPBeginner

Jeśli nie podoba Ci się film lub potrzebujesz więcej instrukcji, czytaj dalej.

Aby wygenerować obrazy w nowo zdefiniowanych rozmiarach, zainstaluj i włącz wtyczkę Regenerate Thumbnails. Po włączaniu wtyczki, przejdź do Narzędzia ” Regen. Miniaturki.

Renerate all thumbnails in WordPress

Naciśnięcie przycisku regeneracji miniaturki rozpocznie generowanie nowych rozmiarów obrazków zdefiniowanych przez twój motyw lub w Ustawieniach „ Strona mediów. Może to chwilę potrwać, w zależności od ilości obrazków na twojej witrynie internetowej.

Możesz również zregenerować rozmiary obrazków dla wybranych obrazów w Media ” Biblioteka.

Regenerate image sizes for specific images

Regeneracja rozmiarów obrazków nie ma wpływu na twój oryginalny upload. Tworzy natomiast dodatkowe kopie obrazków w nowo zdefiniowanych rozmiarach.

Nie powoduje również usunięcia wcześniej utworzonych rozmiarów obrazków. Możesz usunąć rozmiary, jeśli jesteś pewien, że nie używałeś tych rozmiarów nigdzie w twojej witrynie internetowej.

Mamy nadzieję, że ten artykuł pomógł ci dowiedzieć się, jak zregenerować miniaturki i nowe rozmiary obrazków w WordPress. Możesz również zapoznać się z naszym przewodnikiem na temat poprawek typowych problemów z obrazkami w WordPress.

Jeśli podobał Ci się ten artykuł, zasubskrybuj nasz kanał YouTube, aby zobaczyć poradniki dotyczące filmów WordPress. Możesz nas również znaleźć na Twitterze i Facebooku.

Ujawnienie: Nasze treści są wspierane przez czytelników. Oznacza to, że jeśli klikniesz na niektóre z naszych linków, możemy otrzymać prowizję. Zobacz jak WPBeginner jest finansowany, dlaczego to ma znaczenie i jak możesz nas wspierać. Oto nasz proces redakcyjny.

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Najlepszy zestaw narzędzi WordPress

Uzyskaj BEZPŁATNY dostęp do naszego zestawu narzędzi - zbiór produktów i zasobów związanych z WordPressem, które każdy profesjonalista powinien mieć!

Reader Interactions

56 komentarzyZostaw odpowiedź

  1. Syed Balkhi

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Jiří Vaněk

    Thank you for the article. I was dealing with a similar problem after switching from another system to WordPress. we did the export, but the resulting images did not look good after the import, unfortunately. This really helped and saved us the stress of redoing all the graphics. You are amazing, the whole team.

    • WPBeginner Support

      Glad it was helpful :)

      Administrator

  3. JSmith

    Is it possible to regenerate thumbnails natively for just one post? By natively – go to media gallery, click on image, click on button to regenerate its thumbnails. No plugins, no programmatical magic, no messing about with FTP or cPanel. Can this be done?

    • WPBeginner Comments

      Currently, the only way to regenerate the thumbnails in WordPress is to use either code or a plugin.

  4. Tyler Tork

    The Regenerate Thumbnails plugin seems to have fallen out of maintenance. Is there another you could recommend?

  5. Gav Mytton

    You need to update this content as the plugin options have changed and it doesn’t match the content now

    • WPBeginner Support

      Thank you for letting us know, we will look into updating this article :)

      Administrator

  6. dimiter kirov

    You can also use WP-CLI and the command: wp regenerate images

    • WPBeginner Support

      If you’re comfortable with the command line interface you could use a command like that but not all beginners are comfortable using that or need to use it :)

      Administrator

  7. Leyteris

    Hello!
    What happens If, in many of my posts I use the 1024 post thumbnail and later, change this -let’s say- to 910 width? Is it safe to make such kind of a change?
    Thank you for your time

    • WPBeginner Support

      Your theme should specify the image size it is using for the featured image and resize or use the version of the image that is the correct size normally.

      Administrator

  8. Claudia

    I used the plugin and now the thumbnails look great but the pictures are blurry. I appreciate any suggestions to solve this issue.

  9. Lalit Joshi

    regenerate thumbnails plugins don’t running properly.
    what can i do.
    please help me .

  10. David

    If you use the plugin to regenerate thumbnails after resizing an image that was ALREADY in existing posts/pages, what’s the easiest way to update those existing pages/posts to use the new image size?

  11. Antonio

    Hi,

    what if I only have the image path yet the image is actually missing? I backed up the site and migrated it somewhere else, but the back up was maybe not complete or apparently there are no image files in some of the 'upload’ folders.

    Now when I open the media library I get many empty frames, with the path to the image. If I click on edit image I can’t of course do anything because there is nothing inside. Can I upload an image again in that path? Is there a plugin to do that?

    Thank you for your help, if you have a solution :)

    Antonio

    • Matthew Zalewski

      Hi

      If you have FTP access to the site, you can navigate to the wp-content/uploads folder, and manually add the file in the correct path (eg: url.com/2017/12/image.jpg would be found in „wp-content/uploads/2017/12/image.jpg”

      Once that’s done, you should be able to resize the images again using the tutorial above.

  12. Sagar Patil

    Hello, i wont to know is there any way or plugin to create embed codes for website images. as, if i added images in post then it will add code after image or post, so visitors can share that images on other website using embed codes.

  13. Bolte Chitra

    Very Informating post, I’m looking for this very long as I changed themes on my website very often. As I google I found this link, and see here is a solution that need nt any coding. Thanks! Keep Up Good work! I’m going to bookmark your website for any further wordpress issues.

  14. elvis

    hello please can you help me how to change photo from my website , when i share link on fb or when i send message on facebook i se one foto but i want another thrumbail foto please help me , replay my email ?

  15. ashish

    sir iam trying to set up blog post for my theme that convert html to wordpress but is so no display why

  16. suraj

    how can remove old regenerated image ….

  17. Mike

    I was using Avada which creates SEVEN sizes and have since changed to Beaver Builder.
    The article says „You can delete the sizes if you are sure that you haven’t used those sizes anywhere on your website.” How do I delete those old sized images from Avada?

  18. Prabhudatta Sahoo

    Hey There Experts,

    I am having some issues with my thumbnails. I recently migrated my website from one host to another and after migrating the files, I can see that the thumbnails are not showing up as expected. My thumbnails are mapped to the post featured image and after migrating all the featured images are gone. Even I tried the plugin here described but it did not help. Could you please provide any solution to this?

  19. Gagan

    So if i change Image Size in Media Setting and than regerate thumbnail, than i have to modify maually almost alll post and pick up right size for image. Because Images are not showing up.

  20. abdo

    thank you so much, for this awesome blog, all solutions are here, thank you so much for you work and lessons.

  21. Lucy

    For some reason, I’m seeing a duplicate regenerate thumbnails under the „bulk actions” area of my media library. One says „Regenerate thumbnails” and the other „Regenerate Thumbnails”. I deactivated and deleted the plugin but I still see it in the media settings area.

    How do I permanently remove this plugin? I need to go back to factory media settings and this is preventing me from doing so.

  22. Jack

    The regenerate thumbnails plugin works great. I’m afraid I used it many times already in the last 10 years or so. The problems remains how to exchange the current used image size in older posts. I haven’t seen a plugin for this.

    It must be possible to use a search and replace action that would search for *******160x???.jpg or *******???x160.jpg, search for an image with the same name (everything before the last 11 characters), and replace it with an image with the same name but uses 300 at least once somewhere in those last 11 characters.

    The problem is, I can think of a way, but I haven’t got a clue how to do it in mysql ;).

  23. Justin Chua

    Hello, I see that the support is very responsive and I am really happy to see that :) May I know how I can set regenerate thumbnails in such a way that all my product thumbnails are squared? Initially, I manually cropped them one by one so that all images would be squared. Now, after performing regenerate thumbnails, the thumbnails will not be affected no matter how I crop them. my products are best viewed when they are squared. Having them in a rectangular form actually blocks out the sides in the thumbnail. Any help is much appreciated!

    • WPBeginner Support

      The appearance and size of your thumbnails if often determined your WordPress theme. However, you can override this by adding new image sizes in WordPress and then using that size in your theme’s templates. After that you will have to run regenerate thumbnail plugin to resize all existing images.

      Administrator

  24. jack

    after regenerate the images, all do show in FTP under upload but never show in WP DASHBOARD MEDIA LIBRARY. anyone know what going wrong here?

    it never update the post image as well

    • WPBeginner Support

      Your Media Library will only show the original upload not all the resized copies of the image. You can select a size when you are adding an image to a post or page using Add media button.

      Administrator

  25. Nate

    broke every single one of my images. I only had a couple broken, now they all are broken.

  26. JK

    Hi,

    When I try to regenerate thumbnails it fails to do it.

  27. WPBeginner Staff

    Try switching to a default theme and then change these values if you succeed then there is something wrong with your current theme, you should contact theme author for support. If this does not help then try deactivating all plugin, and then change the values. If you succeed, then this means one of the plugins on your site is stopping you from changing those values.

    • Gursimran Singh Reehal

      Found another solution, I’ve edited my themes functions.php and added new post_thumbnail image sizes and instead I’m calling those in my post widgets. Thanks for your reply.

  28. Gursimran Singh Reehal

    The thumbnail and medium image sizes in the media settings aren’t being saved. I get the 'settings saved’ notification but the new values don’t appear in the fields below. Somehow the large size shows the change, but the other two keep showing the old values.

    I’ve tried regenerating, but the problem is the changes aren’t saving properly. Any solutions where can I make the changes through ftp in which file?

  29. WPBeginner Staff

    Regenerate Thumbnails is one of those plugins that you can install if the need arise. There is no point of keeping it on your site since it does nothing on its own until you explicitly tell it to regenerate image sizes.

    • Marc

      Is there any plugin to regenerate automatically? When one of our authors posts a featured image and then switches it for another one, the 2nd image always needs to be regenerated manually. It would be best if it were done automatically so the awkwardly sized image does not have to display on our site waiting to be regenerated by one of us manually.

      Thanks!

  30. tinagleisner

    It feels like this plugin will regenerate all sizes if you want but noone is stating that it does more than thumbnails?

    • WPBeginner Staff

      Yes it will regenerate all image sizes. If an image does exist in all defined sizes, then it will not regenerate another copy of that image.

      • tinagleisner

        Thanks for confirming as I’m trying to sort out what plugins to install on my new site

  31. Lisa

    I just made the switch from blogger to wordpress.org and the pictures inserted from Flickr are incredibly blurry.

    Here are two examples:

    I have four years worth of content…Does anyone know how to fix this? Many thanks!

    • Joshua Coller

      I have a similar issue to Utsav. I am at the point of giving up on WordPress as Blogger seemed to handle photo re-sizing much better. Is there a tool that will add a step between upload and creating the sizes to adjust the section of the image you want to use for the feature? Something similar to when you box in your profile photo on facebook.

  32. Utsav

    hi,
    when I upload any images as featured image only some part of the image appears as featured image. how to fix this problem?

  33. Flávia Pimentel

    Hi, there. I used the plugin and now I have 2 images as thumbnail. How do I delete old sizes? I only have the original image, after using the plugin it did not create a new media file.

  34. Osama

    Hi.. It will regenerate only thumnails (feature images, popular posts on sidebars etc) or it will regenerate all the images on the website?

    • WPBeginner Support

      It will regenerate all the images you uploaded using media uploader in WordPress. Not the images in your themes, plugins, or images you uploaded manually.

      Administrator

  35. Mike

    I am using Solostream’s theme WP-Clear 3.2.1, which uses the latest version of the Regenerate Thumbnails plugin, however when I run the regenerate thumbnails plugin, I get about an 80% failure on regenerating.

    I have even gone so far as to temporarily set the upload directory and files permissions to 777, and it still fails.

    Any ideas? Should I just purchase another theme that will work.

    Thanks

    PS I can’t remember the exact error message as it was all in some code and about 200 characters long, but I have asked around in different forums. You guys are my last hope!

  36. GABRIELA

    YOU ARE AWESOMEEE!!!!
    YOU SOLVE ALL MY PROBLEMSSS !!!
    THANKS A LOT REALLY!

  37. Zad I.

    I had an issue with the thumbnail version of some of my images being broken in the media section. When I checked the folder it was referring, it was not there for some reason, but the original size version was still there. Using this plugin not only fixed my problem, but also saved me a lot of time from having to manually resize each image through photoshop.

    For anyone using this plugin, since I only had about 6-7 broken thumbnail images in the media section, I just selected regenerate image on each one selectively instead of doing it to all images just to be on the safe side. Everything worked well.

    Thanks.

Zostaw odpowiedź

Dziękujemy za pozostawienie komentarza. Pamiętaj, że wszystkie komentarze są moderowane zgodnie z naszymi polityka komentarzy, a Twój adres e-mail NIE zostanie opublikowany. NIE używaj słów kluczowych w polu nazwy. Przeprowadźmy osobistą i konstruktywną rozmowę.