Regenerate Thumbnails

Hi there. May I suggest using Jetpack’s Photon module instead of this plugin? Photon will use WordPress.com’s servers to generate thumbnail images for you on-demand in whatever size is needed. This means that you don’t need to use my plugin to generate new thumbnail images when you switch themes, change thumbnail sizes, or anything else!

Don’t want to use Jetpack? That’s okay too. My plugin still works just fine.

Plugin Description:

Regenerate Thumbnails allows you to regenerate the thumbnails for all of your image attachments. This is very handy if you’ve changed any of your thumbnail dimensions (via Settings → Media) or switched to a new theme with different featured image sizes after previously uploading images.

Download:

Screenshots:

693 thoughts on “Regenerate Thumbnails

  1. thanks for this plugin, I really need it. However it is not showing up in the bulk actions list on the media page. I have the latest wordpress v. 3.0.5 The plugin is very straight forward, I can’t see that I have done anything wrong. It does work on one thumbnail at a time which is a million percent on nothing. so thanks again.

  2. I’m having trouble with the plugin, it doesn’t seem to do anything – just shows the text below and sits there. What’s the first step in debug ? Are there any pre-req’s to the plugin working ?
    Dennis

    ========
    Regenerate Thumbnails

    Please be patient while the thumbnails are regenerated. This can take a while if your server is slow (inexpensive hosting) or if you have many images. Do not navigate away from this page until this script is done or the thumbnails will not be resized. You will be notified via this page when the regenerating is completed.

    (abort resizing images)

    Debugging Information

    Total Images: 1
    Images Resized: 0
    Resize Failures: 0

    • re above … sorry, problem is something to do with new wp3.1 Just rolled back to old version, and it works perfectly. It’s a great plugin, thanks.

  3. Thanks a lot for this plugin as it works well with the AutoFocus Theme. However, I have to say that it used to work fine. Someday and I unfortunately don’t know why it stopped working with photos in the portrait format or after I changed the contrast in Photoshop.
    Then, I always get the following messages:

    [b]Fatal error: Out of memory (allocated 31981568) (tried to allocate 3200 bytes) in /homepages/26/d27070005/htdocs/blog3/wp-includes/media.php on line 253[/b]
    Example for this on my blog: http://www.kunstgalerie-barbara.de/blog3/2011/02/28/what-the-future-holds/

    [b]Warning: imagecreatefromstring() [function.imagecreatefromstring]: Passed data is not in ‘JPEG’ format in /homepages/26/d27070005/htdocs/blog3/wp-includes/media.php on line 253[/b]
    After this error happened, the image won’t have the appropriate measurements on my front page but in the blog entry page it will be alright: http://www.kunstgalerie-barbara.de/blog3 –> blog entry from yesterday (26.2.)

    My hoster is 1&1 and I already read in another comment here that there can be problems due to this hoster but I am not very familiar with PHP issues. What do you think these problems originate from and how can I solve them?

    Thanks a lot in advance!

  4. 1&1 states on their site that the memory limit for all shared hosting accounts is set to 30MB and can’t be changed.

    1&1 doesn’t seem to allow people to circumvent this via the usual methods (wp-config.php, .htaccess or php.ini). I tried it just yesterday, even called 1&1 customer service. The service agent was trying to be helpful and suggested two of the methods above, but it didn’t work – and I found some blog posts confirming that 1&1 seems to block these attempts.

    So it looks like it’s a dead end, unfortunately.

    • 30MB is really not that much. WordPress attempts to set the amount of memory available to 32MB and it’s possible to go over that if you use a lot of plugins.

      Sounds like it’s time for a better host. Yours is cramming too many sites on each server.

  5. Thanks for your Plugin. I slightly altered your code and used it to rename images on the filesystem. I noticed that google not only digs ALT tags, but also filenames. Easy to find out while the site is in German and all resources have English names…

    One remark though: why is the Bulk Action not available at the Media Library?

  6. I don’t get how this is working for everyone. On WordPress 3.0.x it was working fine. Everyone that I talk to using it for 3.1 says it doesn’t work anymore. Isn’t it worth looking into? Also, how ’bout coming up with something that only uses a certain amount of memory? I’m no troll, I’m just saying

    • I’m using 3.1 on all my sites, and everywhere I have this plugin installed, it’s working fine for me (apart from the bulk regen option missing from the Media Library menu). Maybe you’ve got a conflict somehow with another plugin?

  7. Pingback: test 6

  8. Thanks so much for this plugin. Just wanted to give you heads up that the bulk regen is not working on my installation of 3.1 either.

  9. Pingback: Autofocus istructions

  10. I love this plug in but i have one problem – After running it on all my images the “Featured image” on each post is cut off at the top and bottom. Any way to rectify this? Thanks Again

  11. Ok. I am a photographer. Not a blog guy but I’m learning and trying. Would you mind explaining what that means? Do I disable cropping in the theme editor? I found the functions.php folder but don’t know what to do.

  12. To those inquiring about permissions for editors / and for Alex:

    The plugin currently works only for admins – more to the point, users with capabilities “manage_options”.

    On a private blog, maintained and updated by a single person, that perhaps makes sense. But on all WordPress websites that I work on, there is a distinction between the admins and the editors (and at times the authors). And WordPress is indeed built that way.

    Alex: In my opinion, the correct user capabilities should be ‘upload_files’ rather than ‘manage_options’. At the very least, this should be allowed for the single-image function.

    I, in the mean time, simply edited the regenerate_thumbnails.php file in the plugins dir, and replaced all ‘manage_options’ with ‘upload_files’. That way, editors on the sites I admin, can use this function in the Media library.

    Cheers,

    Biranit

    • My reasoning was that only someone with manage_options capabilities could change the settings of what size the thumbnails are or edit the theme’s featured image configuration. Everyone else had no need to run the script, especially since it can cause high server load.

      • Hi Alex,

        Thank you for your reply. I understand completely your reasoning.

        The thing is, your wonderful plugin is actually more useful than you initially imagined :) On several of our wide-staff driven websites, this is a tool used all the time by our editors and photo editors – though not in bulk, and not due to the addition of another image size.

        The reason is that we receive and upload dozens of photos a day from various sources, and very often (several times a day in fact) we use the WordPress media editor to crop/flip/etc the images. After doing that, the editor then runs “regenerate thumbnails” on that specific image – and voila, all is good in our world :)

        Ideally, if you ever went that far, I would separate permissions:

        – only admins for the “tools->regenerate thumbnails” action (which affects ALL the images and indeed should be handled by an admin only)

        – editors for the single image / bulk “media” actions.

        Or, of course, you could create a settings page for the plugin that allows the admin to determine who should have permissions :)

        Anyway… for me personally it’s no big deal. I just have to remember to edit your php file every time we upgrade… :)

        Allow me to take the opportunity to thank you for this plugin, though. It is extremely useful!

        Cheers,

        Biranit

  13. Since last week this plugin don’t work anymore on my blog :(

    Yesterday i have started the plugin, i change all picutres to the selected size, but it don’t show it right on the blog-site.

    do you have any idea what this is?

    thank you

  14. I’m noticing that after a recent WP update, this plugin no longer shows up under ‘Settings’ for me to resize thumbnails.

    Any idea if there’s a compatibility issue or an easy way to fix it?

    Thanks,
    :Steve

  15. Hi,

    Love this plugin, used it a few times when I’ve changed my theme. One problem I’ve noticed this time though, have you any idea why it won’t regenerate thumbnails for png format images? It says it worked, but there are no images of the correct size, only the ones created by WordPress when they were originally uploaded.

  16. Indeed. As I said all thumbnails (even for PNGs) are created when uploading image via the WP uploader. The only time they aren’t created is when I run Regenerate Thumbnails.

    I realize your plugin actually forces WP to run it’s internal function to regenerate the thumbnails, but I was hoping you might have some idea as to why, even though WP can create the thumbnail during an upload, it can’t when your plugin tells it to.

    I’m mystified by why it would happen.

    • As am I.

      I just uploaded a PNG to my WordPress 3.2 beta 1 test site and the thumbnails were correctly made. I deleted the thumbnail files and ran my script and the thumbnail images were successfully recreated.

      • I’m currently running 3.1.2. I’ve just tried it again & noticed something strange. It is running and recreating the thumbnails for PNG files but it is only remaking the normal thumbnail sizes not custom ones. I noticed because the modified date of the thumbnails update every time I run the regenerate thumbnails.

        Have you any clues as to why WP doesn’t seem to be creating custom thumbnail sizes for PNGs but it does them fine for JPGs? Thanks in advance for anything you can think of.

        • I can’t reproduce that issue either. In my test, the custom Twenty Eleven thumbnail sizes were created during my PNG test.

          Sounds to me like it’s a bug with your theme or something in how it registers it’s thumbnail sizes or something.

          • The theme registers it’s thumbnails sizes just by using

            add_image_size();

            I’ll drop a question into the WP forum to see if they’ve any idea what could be going on. Thanks for the help.

  17. Pingback: New Property Sales Site | AppThemes Forum

    • My plugin uses the core WordPress functions. If they’re failing, then they’re likely failing for the reasons described in that thread. Also in that thread are the solutions (namely increase your PHP memory limit).

  18. First off thanks for the awesome plugin. On a side not I think I may have found a bug (as well as a solution to that bug). I posted this in http://wordpress.org/support/topic/failed-to-resize-the-error-message-was-unknown-failure-reason as well, but also thought it might be a good idea to post here.

    In any case my problem was that the the Regen. Thumb plugin uses get_attached_file() to retrieve the filepath. The problem with this is that get_attached_file looks for a post metakey called _wp_attached_file which did not exist. (Not sure why this is the case… perhaps it was because all the content was imported from a non-wordpress blog. Alex any insight into this???). So to get the correct file path I did this:

    In the plugin regenerate-thumbnails.php file (line 352) I replaced

    $fullsizepath = get_attached_file( $image->ID );

    with

    $meta = wp_get_attachment_metadata($image->ID, true);
    $file = $meta['file'];
    $uploads = wp_upload_dir();
    $fullsizepath = $uploads['basedir'] . "/$file";

    And now I can regenerate my images.

  19. Feature Request:

    Not sure if this is within scope of this plugin, but when on the “Add an image” dialog box, and you click the “Edit Image” button, it gives you 3 options to apply your edits to the image. These are:

    Apply changes to:
    -All image sizes
    -Thumbnail
    -All sizes except thumbnail

    It would be nice if there was an option “All customs sizes” or “Featured post thumb” option.

    The reason I post here is because at the moment I make that change, then use this plugin to regenerate the image thumbs so that my custom thumbnails get the new sizes.

    If this is indeed outside the scope of your plugin, Viper could you point me to the right place to request such a feature? I know a bunch of people would like it (http://wordpress.org/support/topic/hack-crop-custom-thumbnail-sizes?replies=17).

    Thanks, keep up the good work!

  20. Still no joy its been two weeks my PHP limit is at like 64M and the plugin still won’t regenerate my thumbnails – it works on every other site I administer and there is no real difference here – I tried deactivating other plugins. The plugin begins working but no progress bar shows up and no images get resized no matter how long i wait. Your plugin is usually amazing but its failed me today…. either that or I’ve done something seriously different from what i usually do?!

  21. Alex,

    I installed your plugin and then the WP-DBManager plugin. When I click on a thumbnail for an image from my media library or from my PhotoShelter archive I receive some rather strange code. Here is a partial list of the code. What do you think is happening?

    Content-language: cs
    Content-type: text/html; charset=ISO-8859-2
    Body:———-cs–

    Po¾adované URL nebylo na tomto serveru nalezeno.

    Zdá se, ¾e odkaz na
    <a href="“>odkazující
    stránce je chybný nebo zastaralý. Informujte, prosím, autora
    <a href="“>této stránky
    o chybì.

    Pokud jste zadal(a) URL ruènì, zkontrolujte, prosím,
    zda jste zadal(a) URL správnì, a zkuste to znovu.


    ———-cs–

    Content-language: de
    Content-type: text/html; charset=ISO-8859-1
    Body:———-de–

    Der angeforderte URL konnte auf dem Server nicht gefunden werden.

    Der Link auf der
    <a href="“>verweisenden
    Seite scheint falsch oder nicht mehr aktuell zu sein.
    Bitte informieren Sie den Autor
    <a href="“>dieser Seite
    über den Fehler.

    Sofern Sie den URL manuell eingegeben haben,
    überprüfen Sie bitte die Schreibweise und versuchen Sie es erneut.


    ———-de–

    Content-language: en
    Content-type: text/html; charset=ISO-8859-1
    Body:———-en–

    The requested URL was not found on this server.

    The link on the
    <a href="“>referring
    page seems to be wrong or outdated. Please inform the author of
    <a href="“>that page
    about the error.

    If you entered the URL manually please check your
    spelling and try again.


    ———-en–

  22. Pingback: » Our favorite WordPress Plug-ins Pattaya Web Services – wesbite design & SEO in Pattaya, Thailand

  23. That’s amazing!! I’m not sure what happened to them, but about half of my thumbnails broke, and your plug in seems to have solved the problem completely, and very easily!!

    Thanks so much!!

  24. Pingback: Website release: Fabmic.ch « //ms-studio.net

  25. is it possible to change this plugin to not only recalc the thumbnails?
    if you work on a photographers page, often large images would be uploaded.
    and the maximum crop of such images in fullsize (page) will also not change after setting other dimensions (max) in wordpress. so would so far i understood this plugin here, just resizes thumbnails and not alle crops like (large, medium)

  26. I am a WordPress newbie, so please bear with me.

    After chaining my thumbnail size in Media options, I installed this plugin on my site and ran it on several photos in my media library. The plugin reported that the resize was successful.

    However, when I load the page with my existing post displaying the existing photo the thumbnail has not resized. Looking at the source code, it is still setting the size to the original thumbnail size.

    I think your plugin is working fine, but somehow my site is still defaulting to the old size.

    Any suggestions? I am running a pretty old WordPress Theme (Freshy2) that may contribute to this.

  27. Pingback: Regenerate Wordpress Thumbnails | Essential Wordpress

  28. I’ve got a photo blog, and I’m trying to create a good backup scheme in case of disaster. For space and convenience reasons I’d like to only back up the original photo and then re-generate all of the thumbnails if I need to restore the site.

    Between my theme and various plugins, there are actually 6 thumbnails generated for each image that I upload, so my question is will this plugin re-generate all 6 of those thumbnails, or only the ones specified under settings>Media?

  29. Hey,

    Just wanted to stop by and leave some huge thanks for saving me hours of time. I created a plugin for my desktop backgrounds website that basically added a ton of custom image sizes to wordpress. Without this plugin I would have been up the creek without a paddle. However, I was able to resize all the images (a few thousand posts) and am now ready to rock and roll :).

    You rock!

    -Dan

  30. Does anyone know how to reverse this process? I saw it is not reversible but says but “you can just change your thumbnail dimensions back to the old values and click the button again if you don’t like the results.” What am I missing? I went to the WP media settings and check the box back for the resize and regenerated and everything stays the same…HELP!

    • My plugin makes sure that thumbnail files exist for all of the thumbnail dimensions that you and your theme have set. So if you have the medium thumbnail setting set to 250×250 pixels, then my plugin makes sure each of your uploads has a 250×250 pixel thumbnail for it. That’s entirely it.

      If you insert a medium sized image into a post, the width/height will be hard-coded into the HTML. Changing settings will not affect that post. My plugin (currently) does not touch posts or anything else either — it only creates thumbnail images.

      I have been playing around with some code that will go through all of your posts and update the HTML for inserted images though (i.e. so when you change settings, you can update the sizes in posts too). Perhaps I should polish it and release it.

      • Yes, yes, yes, please release this code. Or e-mail it to me? I’ve just updated my theme and now everything looks wonky because the videos and images on my old posts are no longer the same size.

      • Ok – here’s my method for updating the images that have already been inserted into posts:
        1) reset your media sizes and run Regenerate Thumbnails
        2) Add this to functions.php

        function new_large_img($vars) {
        	return wp_get_attachment_image($vars[2], $vars[1]);
        }
        
        function new_large_img_filter($content) {
        	$content = preg_replace_callback ( '/<img class="size-(.*?) wp-image-(.*?) .*?\/>/m', 'new_large_img',  $content );
        	return $content;
        }
        
        add_filter( 'the_content', 'new_large_img_filter' );

        3) The last thing I had to do was add some css to fix existing captions:

        .wp-caption {width:auto !important;}

        Hopefully this helps someone… It’s a nice solution since it’s non destructive to your posts in the database.

  31. Pingback: testing | 5coins

  32. Pingback: Remove all resized WordPress media images

  33. i was told to try this plugin to force wordpress to use an edited thumbnail that is cropped to a different place than the default is choosing, and that it would make wordpress use the edited crop. but it’s not doing that. i continue to see the default thumbnail. is your plugin able to do that, or only resize them?

  34. I ran the plugin and see no changes, to the site.
    is there a step i am missing, like after regenerate thumnails?
    do i need to manually replace the thumnails?

    it is not changing the posts.

    mcmnerd.com

    • Posts contain hard-coded references to specific thumbnail sizes. My plugin does not currently go through all of your posts and update those references.

      Featured image, gallery thumbnails, and other dynamically generated HTML is what gets affected by this plugin.

  35. Pingback: Regenereaza pozele din Wordpress - dexblog.ro

  36. Pingback: Images Help - Please.. « Cosmothemes

  37. Pingback: My Favorite Plug-ins / Michigan Freelance Web Designer

  38. Hi

    Can you give me some advice about troubleshooting this great plugin on a Windows Server 2003 box as I have the plugin running with no errors but the images don’t appear to be resized?

      • Note: The small patch might need some polishing, it has to be more ‘intelligent’, with the current pattern for glob(), another check before unlink() should be there.

        Why?

        If there are filenames like file1.jpg (file1-120×120.jpg …) and file1-2.jpg (file1-2-120×120.jpg …) and we use the patch for file1.jpg, glob() with current pattern will also return the thumbs of file1-2.jpg as the pattern fits there as well.

  39. Another good idea:

    I saw many posts about ‘Regenerate Thumbnails’ where it was used mainly as a fix-it tool for invalid ‘_wp_attachment_metadata’ entries in database, e.g. after moving a wordpress-site to a new location. I had exactly this problem and found your plugin when I looked for solutions.

    If a site only has a few images, the plugin (with an option like in my old sizes patch) is perfect already.

    But if a site has more images or many thumbnail-sizes, it takes quite some time.

    You could add an option which would rewrite the ‘_wp_attachment_metadata’ entry and skip the thumbnail recreation (if thumbnail already exists).

    For this you would hook the ‘intermediate_image_sizes_advanced’ filter (used in /wp-admin/includes/image.php) and manually check for existing thumbnails by the given $sizes and strip the existing ones from $sizes and adding that existing size to (global) $metadata['sizes'][$size].

    Then the following loop foreach ($sizes as $size => $size_data ) in image.php would only generate really missing thumbnails and still the correct $metadata would be returned by wp_generate_attachment_metadata() and could be written to db via wp_update_attachment_metadata(..)

    Hope you understand what I mean, what about that?

  40. Pingback: Strings Design Studio « strings-unlimited.com

  41. Hi Alex, thanks for the great plugin! Ran in to a bit of trouble with it and I’m trying to figure out what to do. I have Amazon S3 hosting for files, but run the WordPress on a self-hosted site (Host Gator). There is a plug in called “amazon S3″ that transfers files from the media library to Amazon. When I ran the Regenerate Thumbnails plugin, it resized 49 images and failed on 57 more. Each failure showed that it was looking for the file in the old path (meaning NOT on Amazon S3, but on the web server where the WordPress is running. However, when I display any of those images in the media library, it shows a path to the file at Amazon S3. When I click View, the image displays – from Amazon. So my question is, how is Regenerate Thumbnails picking up the old file location? I wonder if there is a way I can update that? Thanks!

  42. Great plugin!!! In WP 3.3 the lower bulk action selection did not work on my wordpress installation – maybe an issue..?

    Anyway used the upper one and it worker as a charm! Thanks!

  43. Haha THAT was the fastest ever!! TOTALLY cool:) What is there to say:) Hey maybe you are a bond fan as me?

    What movie… Hi, I am Jenny Flex… Of course you are Bond answers:)

    Thanks again!

  44. Hi Alex, I am experiencing a showstopper that seems so obvious, but is leaving me stumped. Regen Thumbnails is failing on all images seemingly due to it using the wrong path.

    Here’s one of the error log messages;

    “Aston Martin DBS Touchtronic” (ID 28110) failed to resize. The error message was: The originally uploaded image file cannot be found at /home/public_html/mywebsite.com/public/htdocs/uploads/http://www.mywebsite.com/wp-content/uploads/2010/05/DBS-touchtronic_banner.jpg

    The image exists at ‘http://www.mywebsite.com/wp-content/uploads/2010/05/DBS-touchtronic_banner.jpg’, but obviously it should only be appending ‘/2010/05/DBS-touchtronic_banner.jpg’ rather than the fully-qualified domain.

    I’m using the latest WP version 3.3.1 and there are no additional plugins on the site. Any thoughts?

  45. There is one small issue in your plugin. When _wp_attached_file is filled with full path with http:// it will cause failure while resizing.
    You can easily fix it with this code (just add it right after fullsizepath definition):

    if (stripos($fullsizepath, site_url(‘wp-content/uploads/’)) !== FALSE)
    $fullsizepath = str_ireplace(site_url(‘wp-content/uploads/’),”,$fullsizepath);

  46. It’s strange behaviour of latest wordpress. Can’t really say why path include URL, but it’s a common problem — I saw several posts about it. Even here Steve Davies is complaining about it.

  47. Pingback: Working on Excerpts, Thumbnails and Teasers | Word Grrls

  48. I appears that the plugin is looking for the images in the wrong folder. Also I do not have anything specified in “media settings” – “upload files”

    When I click on “regenerate all thumbnails” I get the following error for all images:
    1.”pay_off_debt_fast” (ID 2163) failed to resize. The error message was: The originally uploaded image file cannot be found at /home6/yogadivi/public_html/creditvisionary/wp-content/uploads/public_html/creditvisionary/wp-content/uploads/2012/02/pay_off_debt_fast.png

  49. Pingback: 24 Stable WordPress Plugins For A Better Publishing Experience | Web Help 101

  50. Pingback: 24 Stable WordPress Plugins For A Better Publishing Experience | WebDesignBasis.com

  51. Pingback: ????? ???????????? ??????? | Andrey.ws

    • did you ever get a solution to this? I am also getting php errors:

      function () { if (!d) { var c = arguments, g, h, i, j, k; b && (k = b, b = 0); for (g = 0, h = c.length; g < h; g++) { i = c[g], j = f.type(i), j === "array" ? e.done.apply(e, i) : j === "function" && a.push(i); } k && e.resolveWith(k[0], k[1]); } return this; }

      I had to delete some of the original larger files due to space issues. i returned them all in order to regenerate thumbnails which is when this error occurred. it seems the files are being created but all at 0kb.

      i am using WP 3.2.1.
      and the latest plugin version

  52. I’m also getting the same error as Daryl:

    Resize Failures: 1

    function () { if (c) { var a = c.length; m(arguments), i ? (k = c.length) : e && e !== !0 && (j = a, n(e[0], e[1])); } return this; }

    Thanks.

  53. Hi there–I’m helping to get a wordpress blog going, and the blogger wants to do most of the posting with an iPad. I’ve found an app she likes and everything works well, except that none of the photos uploaded via the app show thumbnails in the WP admin Media Library.

    The cause seems to be that the uploaded images have _wp_attachment_metadata key values of “a:0:{}”, whereas images attached “correctly” via the media library interface have a lot of stuff in their _wp_attachment_metadata keys.

    Your “Regenerate Thumbnails” plugin seemed like exactly what I was looking for, except when I run it, it completely ignores the images with missing thumbnails, while regenerating thumbnails for all the other (already fine) images.

    I ran across a post (https://wordpress.org/support/topic/failed-to-resize-the-error-message-was-unknown-failure-reason) indicating that one possible workaround might be to edit the regenerate-thumbnails.php file directly to change the method by which the plugin enumerates its list of image files, but I wanted to check here first to see if you had any other tips. I can post screenshots and code snippits if it might be helpful. Thanks!

    • I would track down the issue to the root cause — why is the app failing to properly upload images? If she’s uploading images via the app but they aren’t showing up in the Media Library properly, then something is wrong.

      I would recommend using the official WordPress app if that’s not what she’s using.

      • Thanks, Alex. I’m also contacting the app’s author (it’s Blogpress, from here: http://itunes.apple.com/us/app/blogpress/id317799861?mt=8). The app does indeed upload and they show up in the appropriate subdirectory under wp-content/uploads, but they don’t have auto-generated thumbnails with them (no “…150×150.jpg” or “…300×300.jpg” files like other uploaded images have). Something’s obviously not right.

        Will try to shift her to the official wordpress app, but it’s extremely crash and when you embed images in posts, it shows them as html code instead of as a picture, which is what drove me to an alternative app in the first place.

        Thanks!

  54. Follow-up: when I select one of the non-regenerating images on the Media Library page and then choose “Regenerate Thumbnails” from the Bulk Actions drop-down, the screen changes to the Regenerate Thumbnail page and the plugin reports an error under the Debugging Information heading, saying “Failed resize: 102 is an invalid image ID.” The image ID that it lists changes depending on which image I select.

  55. Pingback: The Top 100 WordPress Plugins For Your Site

  56. Pingback: WPMU’s 100 Best Plugins | Talking Wordpress

  57. Pingback: 6 WordPress Plugins I Can’t Live Without

  58. Pingback: The Top 100 WordPress Plugins For Your Site « Mõtteid IT maailmast ja selle lähistelt

  59. Pingback: Top 100 WordPress Plugins yang Perlu Ada | Wan Rizuan Blog

  60. Hi, I’ve been using this plugin on several websites, and it is easy to use..

    but I am currently working on a new website, the plugin does not seem to have an error but it does not create any thumbnails on the uploads, in fact there is not thumbnails created other than the original image,

    just wandering if is it because of my server settings or something?

    • They are being resized proportionally. If you want them cropped, then you’ll need to enable that. You can enable that for the smallest thumbnail size at Settings -> Media. Cropping for other sizes will need to be enabled via code in your theme.

  61. Love the plugin, using it on a bunch of sites! Ran into an issue – One site got hacked and I renamed wp-content as a precaution to avoid future problems. Unfourtunately I can no longer regenerate thumbnails (which is desparately needed after moving data to a fresh WP install). I think the problem is that the plugin looks for images in wp-conent which I no longer have. How do I get the plugin to look at the new dir?

  62. Pingback: The Top 100 WordPress Plugins For Your Site | Multidots Solutions

  63. This seems like an awesome plugin and everyone can get it work, except me ;-(
    Can you tell me if I’m doing this correctly: I have images loaded in the media library, and I have ‘settings > media’ with thumbnail images set to 150 pixels wide. As a result I have thumbnail images in my posts that are 150 pixels wide. All good so far.

    When I change my ‘settings > media’ thumbnail size to 100 pixels wide, I go to ‘tools>regen thumbnails – regenerate all thumbnails’. I click the button, and get a message ‘all done!’. Then I check the posts, and all the images are exactly the same as they were – 150 pixels wide.

    Any help greatly appreciated!

    • This plugin doesn’t go through your posts and update hard-coded links to thumbnails (yet). I was playing around with some code that would do that but I never completed it. Ran into some issues but I should probably work on resolving them.

      Currently this plugin is most useful for post thumbnails and gallery thumbnails, both of which are dynamically generated rather than hard-coded in your post’s contents.

  64. It’s my experience that the Tools > Regen. Thumbs page will delete the existing files and replace them with the new settings, while the image-by-image conversion on the Media page will add the new resizes and leave the existing files in place.

    Is this difference on purpose?

    Could be a nice feature on the Regen All page to be allowed to keep the existing files if you wanted to.

    • My plugin calls the same thumbnail generation function that is called when a file is uploaded. This functions does not delete any files from your server which is important because posts contain hard-coded links to those old thumbnails.

      The only thing the thumbnail function does is generate thumbnails for all of the thumbnail sizes that are currently registered (large, medium, small, any featured post sizes, etc.) and then store that data in the meta data for the upload.

  65. hm… i set thumbnail size to 250×250 and tick for “Crop thumbnail to exact dimensions (normally thumbnails are proportional)”, but what i got is not exactly 250×250. Some image becomes 250×233 or 250×245.. where the hell those numbers come from ?

    All I want is just a fixed 250×250. Unticking make it worst, it becomes 250×180 or 250×170…

    ?????

  66. Hi Alex,
    I have the following error :
    function () { if (c) { var a = c.length; m(arguments), i ? (k = c.length) : e && e !== !0 && (j = a, n(e[0], e[1])); } return this; }

    And it seems i’m not alone.
    Can i help you fix-it (giving you an access to the admin page) ?
    Best regards and thank you for your job

  67. Pingback: Our top 10 must-have and must-avoid WordPress plugins

  68. Hi Alex,

    I’m re-designing my blog & have updated from a previous version of AutoFocus
    so I tried used this plug-in as advised but I keep getting this error on any & all image i try to regenerate.

    function () { if (c) { var a = c.length; m(arguments), i ? (k = c.length) : e && e !== true && (j = a, n(e[0], e[1])); } return this; }

    Any suggestions??

      • yikes… AJAX? JSON?? jQuery???
        i don’t know what any of these terms mean, lol :/
        clearly i’m not very experienced in this

        any other suggestions,
        or any way you could explain it in lamens terms??

        i appreciate your quick response!

        thanks

  69. Why my pictures don’t appear on the website? I have loaded these in the library and i use “Regenerate Thumbnails” but nothing… Help me please

  70. Hi Alex

    I am facing a problem after changing the hosting. I am not really good with PHP.
    “Seo” (ID 726) failed to resize. The error message was: The originally uploaded image file cannot be found at 2011/12/Seo.jpg”

    all images are uploaded but I still get that error

  71. Pingback: ??? 100 ????? ?????? ????

  72. Hi,
    Same problem for me. 600 images at good 4700 and made ??error in running.
    I ssh dont add, unfortunately, please tell me what must to write. thank you very much

    function (){if(c){var a=c.length;m(arguments),i?k=c.length:e&&e!==!0&&(j=a,n(e[0],e[1]))}return this}

  73. Pingback: 100 Best Wordpress Plugins by Webworx | Wordpress Web Designer

  74. Here’s a strange questions. Everything was working fine with my thumbnails and galleries. Then I decided I wanted to resize them all with the Regen plugin. Now I can’t add a thumbnail from gallery images (new or existing) but I can add any other size.

    What’s more is that if I add a thumbnail to a post in the HTML editor and then switch to the visual editor it doesn’t show up. When I click back to the HTML viewer there is a mysterious new class on the images called “ufrsgmtduachvsovggko”. That line gets added to the class every time I switch from HTML to Visual. There maybe be several on each image. Where is this coming from? Why can’t I display any thumbnails or galleries anymore?

  75. Awesome plugin!! It’s already saved me tons of time.

    Does your plugin support external images? I was able to use the Auto Featured Image plugin to set features on posts with linked images. How does your plugin handle these featured images since they are not uploaded as media?

    Thank you in advance.

Leave a Reply