Acolonna
Member
Posted 3 weeks ago #
This plugin has two major issues:
1) for sites with a lot of images it is not possible to run it on a shared server. the timeouts and impact on resources could be resolved with an asynchronous procedure divided in steps (every time the page is refreshed within the same operation, it picks up from where the job was left).
2) the plugin doesn't fill the DB post meta correctly (it "forgets" about any thumbnail format data if that thumbnail was not generated because already present in the right format).
http://wordpress.org/extend/plugins/regenerate-thumbnails/
1) Yes, it needs to be written to use AJAX or pick up where it left off (AJAX would probably be best).
2) Not quite sure what you mean. I'm using the WordPress API.
wp_update_attachment_metadata( $attachment->ID, wp_generate_attachment_metadata( $attachment->ID, $fullsizepath ) );
1) Check out v2.0.0. It's now AJAX powered and each image resize is done via an AJAX call.
noyz319
Member
Posted 3 weeks ago #
I've used this plugin in the past and it's worked great, but i've been trying to get this new version to work today and it's not doing anything at all for me. No images get re-sized as far as i can tell and after I click the button i do not get a progress bar, just see blank space underneath the title Regenerate Thumbnails, and no text saying "Please be patient while all..." (as i saw in the plugin screenshot). Thought it might be a browser problem, but i've now tried it Safari, Firefox and Opera all with the same non-result. Any ideas? The site i'm trying to use it on is quite large with lots of images, could that be the issue even with this new AJAX version?
The progress bar should show up regardless as it's created using Javascript before any AJAX calls are made. If the progress bar is not showing up, then it sounds like it's installed incorrectly or there's another plugin interfering with it.
And really you can keep using v1.x if you want. It's the same regenerate code, it just doesn't use AJAX.
noyz319
Member
Posted 3 weeks ago #
It's not an install or plugin incompatibility issue. I managed to get it to work fine on a small test install with no other plugins running. I then imported the wordpress xml file + attachments from the site i've been trying to regenerate the thumbnails on. Once the posts were imported Regenerate Thumbnails gave me the same problem (no progress bar, no error messages, just blank) as it did when i attempted to run it on the actual site. Could there be a corrupt image in one of the posts or something similar that is maybe causing it to fail?
I don't see how that's possible and I have no way to debug your blog. So... I dunno what to tell you.