Code

Discussion on Real Thumbnail Generator: Efficiently force regenerate thumbnails in bulk (or single) in WordPress

Discussion on Real Thumbnail Generator: Efficiently force regenerate thumbnails in bulk (or single) in WordPress

By
Cart 593 sales
Recently Updated

devowl supports this item

Supported

This author's response time can be up to 5 business days.

105 comments found.

Hello Matthias, I want to buy this plugin for eCommerce products thumbnail resizes, I’m using Woo zone Woo Commerce Amazon Affiliates puling by AA-Team, this plugin use products images straight from Amazon’s CDN, Can I able to resize my products images by this plugin, Thanks

Hello there! Sorry, this plugin is only for thumbnail regeneration process. :( Best regards, Matthew :-)

We use Imagify to compress images, could you explain the advantage of this plugin. As far as I see in forum people are reporting higher CPU usage, not less

Hello there! This is not a problem of the plugin, I think it is the CPU of the individual customer. But I have planned to add an option to set the delay between each generation. Best regards, Matthew :)

Hi Matthias,

Some time ago I contacted you to report high CPU usage in my server when regenerating thumbnails with your plugin. After some optimisation work, I reinstalled the plugin and unfortunately the problem persists…. Is there a way to configure a delay between images when regenerating in bulk?

Hallo! Was verursacht denn das Problem genau? Die geringe Verzögerung zwischen Regenerieren oder die Anzahl an Regenerations / Request? Beste Grüße, Matthias :-)

Hello Matthias, It is hard to say, the CPU usage metrics given at server side are averaged. Therefore it could be a high request rate, requests per second… Any idea on how can we solve this issue?

Ich werde demnächst eine Option hinzufügen, die Verzögerung zwischen den einzelnen Regenerationen einzustellen. Beste Grüße, Matthias :)

I clicked the Analyze images button in the Thumbnails page, the timer started but nothing response after 20 minutes. I have ~3000 images. Any idea whats wrong? is there any log file? My server running on a VPS with PHP 7.0.

Hello there! Can you please send me a demo login to your site so I can have a look at that? support@matthias-web.com Also, you can check the PHP error log. Best regards, Matthew :)

Great plugin, I hope it could work in the woocommerce product page like following:

Tick multiple products at once >> select regenerate thumbnails from bulk actions dropdown >> auto regenerate ALL photos thumbnails that associated with the selected products

Hello again, sorry, such a feature is not available :( But you can tick the product images in the Media library and click regenerate. Best regards, Matthew :)

Hi Matthias, am I right to assume that if I were to upload via ssh or ftp, and replace images, that running the thumbnail generator would do all the replacing of all the other sizes that WP normally generates? I normally use the Media Replace plugin for this, but I can only do that one at a time. Will your plugin allow me to do that in bulk?

Thanks! Grady

Hello there! Yes, the images are not regenerated automatically. You must start the regenerate process in WordPress. Best regards, Matthew :)

Hello Matthias, I just purchased RGT via codecanyon and tested it up. I really like how it works. One thing I have an issue with current theme that when add new portfolio item, the RGT doesn’t show the option of ‘attachment display setting’ on the insert media pop-up. Is there any way to make the option visible on portfolio page? Thank you in advance for your support.

Hello there! I have read your email but I have not answered yet, sorry for that… As I can see in your screenshots you want to “Add images to gallery” and there the options for attachment display is not available. This is standard wordpress. If you create then a gallery you can define this settings in that view. Best regards, Matthew :)

Thank you for the prompt response. Would you mind to explain a bit easier? where can I find the set up page or how to do ‘to define this setting in that view’ ?

Just have a look at this tutorial on creating galleries: http://www.wpbeginner.com/beginners-guide/how-to-create-an-image-gallery-in-wordpress/ . The view “Attachment display setting” is only available when inserting a single image and not a gallery. Best regards, Matthew :)

Hello, Every time I’ve attempted to analyze images and/or make bulk changes, this error is logged and the process fails. I’ve tested it with non-essential plugins disabled and on both my development platform and live platforms (two different hosts/servers):

[21-Feb-2017 08:53:07 UTC] PHP Fatal error: Cannot use object of type WP_Error as array in /home/vpreatr/public_html/wp-content/plugins/real-thumbnail-generator/inc/attachment/Thumbnail.class.php on line 31 [21-Feb-2017 08:53:07 UTC] PHP Stack trace: [21-Feb-2017 08:53:07 UTC] PHP 1. {main}() /home/vpreatr/public_html/wp-admin/admin-ajax.php:0 [21-Feb-2017 08:53:07 UTC] PHP 2. do_action() /home/vpreatr/public_html/wp-admin/admin-ajax.php:91 [21-Feb-2017 08:53:07 UTC] PHP 3. WP_Hook->do_action() /home/vpreatr/public_html/wp-includes/plugin.php:453 [21-Feb-2017 08:53:07 UTC] PHP 4. WP_Hook->apply_filters() /home/vpreatr/public_html/wp-includes/class-wp-hook.php:323 [21-Feb-2017 08:53:07 UTC] PHP 5. call_user_func_array:{/home/vpreatr/public_html/wp-includes/class-wp-hook.php:298}() /home/vpreatr/public_html/wp-includes/class-wp-hook.php:298 [21-Feb-2017 08:53:07 UTC] PHP 6. RTG_Ajax->wp_ajax_query_attachments() /home/vpreatr/public_html/wp-includes/class-wp-hook.php:298 [21-Feb-2017 08:53:07 UTC] PHP 7. RTG_Thumbnail->prepareForJS() /home/vpreatr/public_html/wp-content/plugins/real-thumbnail-generator/inc/general/Ajax.class.php:50

Prior to installing, I was using the ‘reGenerate Thumbnails Advanced’ plugin without incident and only switched due to additional features found in ‘WP Real Thumbnail Generator’. I am able to selectively regenerate thumbnails by way of the media library, although any function in bulk fails. All configuration and folder/file permissions appear correct.

Please advise.

Thanks!

Hello there! Can you please send me a demo login to your site so I can have a look at that? support@matthias-web.com Best regards, Matthew :)

Hi Matthias, I am the proud owner of Real Media Library and Real Thumbnail Regenerator licenses and would like to check in to say thanks!

Also, yesterday I had some issues with RTR. I switched themes and I needed to run RTR overnight to attend the ~1900 images in my library. However the process exceeded 150% of my CPU allowance of my hosting server.

Is there a way to throttle down RTR so that I do not get in trouble again?

Thanks a lot!

Hallo! Ok, natürlich sollte das nicht passieren. Wie groß sind denn die Dateien durchschnittlich und wie viele Thumbnails werden dann generiert? Beste Grüße, Matthias :)

Hi Matthias

Thanks for the reply. I’d forgotten that I was using Simple Images already (duh!). And your reply made me think that maybe I could use the max height field. I’ll have to experiment with that.

Yeah, let me know if it works. :-)

Hi Matthias

I’ve recently bought RML and I’m interested in this plug-in. My major question is is there any way to have different sizes for portrait and landscape images? Most of my images are landscape and 624 px wide – but this is too wide for portrait-format images. So I end up creating more files than I need.

Also will this work OK with files that are also stored in Amazon S3 (using WP Offload S3).

Hello there! You can use a plugin like this: https://de.wordpress.org/plugins/simple-image-sizes/ to create custom image sizes. For the regenerate with S3 I do not know. I think the physical upload folder for thumbnails will not work there, but you can give it a try how S3 is handling that. But the regenerate will work for you. Best regards, Matthew :-)

Of course. The problem concerns the conflict with the plug: Ajax Search Pro When activated plug is not – does not create a directory with thumbnails

Can you please send a demo login to this site to the email sags@matthias-web.de? And there is a basic authenticiation for the given domain. Best regards, Matthew :)

Very nice script :). I found one problem There is a conflict with the plug Ajax Search Pro. Where the activated form is not decided directories.

Hello there! Can you please explain with more details because I do not exactly unterstand. Regards, Matthew :)

It’s buggy. It does always regenerate all thumbnail sizes, not just the selected ones.

That’s because of this code in general.js:

forceNewCheckbox = jQuery('input[type="checkbox"]')
forceNew = forceNewCheckbox.is(" :checked"),

You can fix it by inserting .first()>

forceNewCheckbox = jQuery('input[type="checkbox"]').first()

And keep in mind to also update the minified JS code in realthumbnailgenerator.min.js.

Hi Matthew, I know what ”.first()” does, but I think that’s exactly what you want to do there. You want to check the value of the “If there is an old schema for an…” checkbox only.

Your code does ignore the “only this thumbnails” setting if “forceNew” is set:

// Only allow "only this thumbnails" when they are given and we do not use a new schema
if (count($this->onlyThisSizes) > 0 && !$this->isForceNew) {

So whenever I check any of the thumbnail checkboxes, the setting is ignored and all of them are regenerated. So that feature is essentially not working.

Sorry… you are right! Thank you for that bug report and the associated solution! I will fix that for the next version update. Schöne Grüße, ein gutes neues Jahr und noch einen schönen Tag! :)

Perfect! Ebenfalls :)

Hi MatthiasWeb , the plugin looks cool! Is there an option/button for “regenerate thumbnail” on the “Edit Post” page ? Regards

Hello there! Yes, the regenerate button is also in the edit post page when selecting an image. Best regards, Matthew :)

I am very happy with the plugin but it is not deleting unused images. I have tried the bulk removal and also individually.

When I click on a single image and then click (Delete Unused sizes 3.8MB) it spins but then nothing happens and the unused images are still shown.

The “bug” is fixed. This is not a bug because the thumbnail file never existed. How have you created the custom size “__forceDelete”? Best regards, Matthew :)

No. It must be some other plugin. Thanks for having a look.

I see you manage a lot of images, have a look at this plugin https://codecanyon.net/item/wordpress-real-media-library-media-categories-folders/13155134 from me, it allows to organize your media library into folders. :-)

Love this product but disappointed that it doesn’t work with square cropped images. I have a custom image size set to 160×160 in true cropped mode but this plugin only resizes an image to 160xPROPORTIONAL_HEIGHT and doesn’t hard crop it. Can this issue be resolved please? It’s default wordpress behaviour to have specific crop sizes so not sure why this wouldn’t work with it?

Yes, this seems to be a bug. I will start to debug and fix that… :)

Bug is fixed. I will upload the new version asap.

Thank you! Now this plugin is officially kick-ass!

Excellent Work! :-)

Thanks. :)

Thanks for the quick reply. The problem we have is that we have tried a few themes and now have approximately 10 image sizes for over 75,000 products. Most of the resized images are not being used and just taking up space on he server. Will this resizer delete all unused images when resizing?

Since your last theme switch have you already regenerated the thumbnails again? If no, the old ones will be detected and can be deleted. :)

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey