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) after previously uploading images.
Download:
- Download from WordPress.org (703,129 downloads)
Screenshots:
- The plugin at work regenerating thumbnails
- You can resize single images by hovering over their row in the Media Library
- You can resize specific multiples images using the checkboxes and the “Bulk Actions” dropdown (WordPress 3.1+ only)



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.
The bulk actions functionality requires the soon-to-be-released WordPress 3.1, as I mention at the top of this page.
amazing plugin, thanks, just what I was looking for.
Its silly that wordpress doesnt already do this!
thanks
Hello,
WP 3.1 just went out but the bulk action does not appear in the media library ?
Now that you mention it I think they made some last minute changes to the bulk actions code. I will investigate. Thanks.
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.
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!
You’re running out of memory trying to resize large images. Try increasing your PHP memory limit:
http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP
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.
I think we all know it doesn’t work for WP 3.1. Any ETA on fixing it?
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?
Love this plugin…been using it on my own and clients’ sites for a while now. Any word on the bulk regen functionality?
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?
Thank you very much for your awesome plugin, it saved my day!
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.
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
In your theme’s files (probably
functions.php), disable cropping of the featured image.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.
I’d contact the author of your theme. It’s a theme “issue”. My plugin is just obeying the configuration of the theme.
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
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
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
It’s located under “Tools”, the same place it’s always been located.
[::headdesk::]
Thanks, I either need a nap or another pot of coffee.
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.
If you upload a PNG image and thumbnails aren’t made then, then it’s not my plugin at fault.
It sounds like your server lacks the capability to manipulate PNG images for whatever reason.
i happen to know that Paul’s server doesn’t lack that capability
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
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.
Any idea why the latest version of the plugin isn’t working at all: see this thread for the issue I’m talking about
http://wordpress.org/support/topic/failed-to-resize-the-error-message-was-unknown-failure-reason
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).
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
with
And now I can regenerate my images.
Nice fix. It works perfectly for me. Thanks.
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!
This plug-in saved me A LOT of time. I can’t thank you enough!
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?!
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–
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!!
Anyway, you’ve done a great work with your plugin!
Thanks,
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)
No, it resizes all sizes of thumbnails. Small, medium, large, custom ones, etc.
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.
Small correction, the name of the theme I run is Freshy – sorry!
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?
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
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.
Do you have this code available? Any image already in a post HTML needs to be manually replaced otherwise.
Thanks for the great plugin!
I can’t find the awesome code I wrote. I’m afraid I may have deleted it.
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.
My method went through and actually updated all of the posts in the database. A filter is nice but adds overhead.
Thanks!
This thumbnail generator is the only one that works for me
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?
My plugin doesn’t allow you to choose how the thumbnail is created — it only triggers WordPress to re-make thumbnails as if the image was just uploaded.
ahh thanks Alex, appreciate the quick reply to. i will keep your plugin in mind if i ever need that and look for something else to sort out my problem
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.
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?
Can you provide an example URL of where this is happening please? Thanks.
Thanks for quick reply Alex – once I typed all that out I went and investigated general image resize issues on Windows and realised I needed to change the php.ini on the Windows box to allow the php_gd2.dll extension by uncommenting:
extension=php_gd2.dll
If thumbnail sizes change (e.g. during development of a theme), you sometimes want to delete any previous outdated sizes, not only the current ones. Here a small patch for that:
http://wordpress.org/support/topic/how-to-delete-old-thumbnail-images
Important: Note that URLs to images are hard-coded in posts and pages. Removing old thumbnails could result in broken images if they are still used somewhere on your site. You have been warned…
Yeah, I left out removing old sizes because they are likely referenced. Having it as an option would be a good idea though.
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.
Yeah, I’d remove them in a different method than you did, likely a more robust regex check.
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?
Great job I like your type! Would genuinely like to right here your feedback on my blog site! I’m also searching for someone to assist me make web sites!
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!
Well, the file needs to be local for this plugin to work. It can’t open and process remote files.
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!
v2.2.1 fixes this issue. Thanks for reporting the bug!
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!
The plugin appears to be broken with the latest update and generates a WordPress error “are you sure you want to do this?”. According to the following website an essential string of code is missing: http://nooshu.com/wordpress-are-you-sure-you-want-to-do-this
Same Error!
What specific action(s) causes the error to occur? I can’t seem to reproduce it myself.
If you go directly to the media library and searching for an specific image!
Filtering posts by category using the dropdown menu in the Posts section triggers the “are you sure you want to do this” error.
Same error !
Same error. It occurs when we do a search in the posts page or in the media page.
Oh, I can reproduce it and I realized the mistake I made.
Upgrade to version 2.2.2 (it’ll show up on WordPress.org very soon) and it’ll fix the issue.
Sorry for the trouble!
Thanks, Alex. Great plugin BTW.
Hi Viper! Do you have a change log describing version 2.2.2 that we can read? Regards, Carlos.-
http://wordpress.org/extend/plugins/regenerate-thumbnails/changelog/
Thank you for the plugin and update.
good luck
Thank you for fixing this
I love this plugin, and its something that should be part of WP core.
I do need to delete old thumbnails though, and am weary about trying the script listed above.
Many thanks. Just realised there’s such a plugin.
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?
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);
Why would the path be set to a URL?
I am seesing the same thing. The path displays the url of the site.. and the funny thing is teh URL is in the middle of the path.. this gives an error on all image resizes
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.
Thanks for the plugin, saved my life
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
I’m getting an error when I try to use the plugin, either in single or bulk mode:
Debugging Information
Total Images: 1
Images Resized: 0
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;}
And I noticed someone else on the WP forum is having the same issue: http://wordpress.org/support/topic/plugin-regenerate-thumbnails-odd-php-when-failing
Any ideas?
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
I never managed to reproduce that error (so I have no way of fixing it) but according to this forum thread it was some type of permissions error apparently.
thanks – i tried editing the permissions but it’s still doing the same thing. i think it must be because i deleted then re-added the originals possibly, cause the ones where i didn’t do that are working fine. the files still show on each posts featured image though, and in the media section, so WP knows where they are. so weird!
okb meaning 0Kb!
Actually I did a bit of Googling and may have figured out what’s up. I think the AJAX request is failing.
Great plugin, works perfect! I had to regenerate over 250 images of my wordpress gallery. I took less then one minute with this plugin!.
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.
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!
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.
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?
If you upload a new image and no thumbnails are created, then it’s a server issue, most likely your host doesn’t have the GD image manipulation module installed.
phpinfo()will tell you: http://codex.wordpress.org/Finding_Server_InfoHi Alex,
please have a look at the following link
http://stylesoflondon.co.uk/catalog/egan/
can you tell me why once the images have been regenerated they are differnt sizes?
thanks for any support
regards
Gareth
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.
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?
The path is stored in the database so you’ll have to change it there (the post meta for each upload). This is core WordPress behavior.
Yep, plus “uploads” folder in Media settings needed to be changed. All good now. Thanks!
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.
That makes sense, I found some images, such as those in galleries that had been modified by the plugin while others were untouched.
Many thanks for your response!
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.
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…
?????
Weird. How big are the original images? Bigger than 250×250?
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
Sure! Create a new administrator account just for me (so you can remove it later) and e-mail me the log in details.
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??
That seems to occur when the AJAX handler returns invalid JSON and jQuery freaks out.
I recommend you use Firebug or Chrome’s developer tools to see what the AJAX response is.
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
Oh, sorry!
Something isn’t working right. I can debug for you if you make me a new administrator account on your blog and then send me the log in credentials via http://www.viper007bond.com/contact/ (don’t post them here as a comment)
Or alternatively you could try temporarily disabling all other plugins to see if that fixes it (probably not but worth a shot).
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
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
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}
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?
Also, The class “ufrsgmtduachvsovggko” only gets added to the thumbnails on a page. It doesn’t add itself to any other sizes that are within the same post.
Frankly I haven’t a clue. I’ve never heard of anything like that.
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.
Nope. My plugin walks through all of the images in your Media Library and resizes them. It doesn’t look at posts.