WPIntell

Source evidence

Resume button

Optimize Images Resizing · support · 2016-12-13T03:41:00+00:00

mixedsentiment
mediumseverity
0.85relevance
7replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 26 rows with source links

23.1% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

20 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
notificationbox resolved
Hi there, I was wondering if there was a way to resume or use the command line to run the plugin. There are approx 400k images to cleanup and I do understand that it will get faster after each run, but can’t get it past 40k before I need to rerun the cleanup. Hello, the plugin supports WP-CLI so you can try your luck with that. There is no resume functionality currently, though that is a great idea. The plugin could use some love anyway as I did not update it for quite some time. I will do my best to release an update this week and include the resume functionality as well. By the way, did you check the error logs, is it maybe getting stuck on one specific image? Hi thanks for the reply. Could you please let me know how I can use WP-CLI with your plugin. I think I have a bad internet connection so it drops out. Hi, you can check this website for the documentation on how to use WP-CLI: http://wp-cli.org/ By the way, I just released a new update that adds support for resuming the removal, so please test it and let me know how it goes. Thanks! Hi thanks. Do I need to select Keep a record of removed images sizes (not recommended for huge media libraries)? in order to have the resume function? With the CLI. Does the cleanup function just removes images with filename-150×150.jpg I can probably write a little batch file so that it just removes all images that contain -150×150.jpg etc. Hi, 1.) You don’t need to select that checkbox in order to have support for resuming the removal, the resuming functionality will work regardless. How it works is it saves the current progress in the database, and removes that progress once the cleanup is finished. If the cleanup does not reach it’s end, the progress record won’t be deleted and you will get an option to resume it on next visit to the admin screen. About the CLI, I have not deeply tested it since I don’t use WP_CLI myself (the support for it was added by another contributor), but it should remove all images that the cleanup through admin interface does. Your 150×150 images won’t be removed however you run the cleanup process, you can read more about why that is in the plugin description (basically, that size is used in the media library). Hi there, Thank for that. The resume function works well now. I’ve noticed that after the cleanup it has removed some of the images used for the Woocommerce category page. I’m using a caching plugin, do I need to remove all cached files and then open up the page to see if it get’s regenerated? Hi, yes, ideally after installing this plugin you should purge your pages cache, and the plugin should create the image sizes the website needs on the first request.

Comments

7 shown
OriginalEXE 2016-12-13T10:59:00+00:00

Hello, the plugin supports WP-CLI so you can try your luck with that. There is no resume functionality currently, though that is a great idea. The plugin could use some love anyway as I did not update it for quite some time. I will do my best to release an update this week and include the resume functionality as well. By the way, did you check the error logs, is it maybe getting stuck on one specific image?

notificationbox 2016-12-13T18:34:00+00:00

Hi thanks for the reply. Could you please let me know how I can use WP-CLI with your plugin. I think I have a bad internet connection so it drops out.

OriginalEXE 2016-12-17T02:08:00+00:00

Hi, you can check this website for the documentation on how to use WP-CLI: http://wp-cli.org/ By the way, I just released a new update that adds support for resuming the removal, so please test it and let me know how it goes. Thanks!

notificationbox 2016-12-17T10:53:00+00:00

Hi thanks. Do I need to select Keep a record of removed images sizes (not recommended for huge media libraries)? in order to have the resume function? With the CLI. Does the cleanup function just removes images with filename-150×150.jpg I can probably write a little batch file so that it just removes all images that contain -150×150.jpg etc.

OriginalEXE 2016-12-17T11:03:00+00:00

Hi, 1.) You don’t need to select that checkbox in order to have support for resuming the removal, the resuming functionality will work regardless. How it works is it saves the current progress in the database, and removes that progress once the cleanup is finished. If the cleanup does not reach it’s end, the progress record won’t be deleted and you will get an option to resume it on next visit to the admin screen. About the CLI, I have not deeply tested it since I don’t use WP_CLI myself (the support for it was added by another contributor), but it should remove all images that the cleanup through admin interface does. Your 150×150 images won’t be removed however you run the cleanup process, you can read more about why that is in the plugin description (basically, that size is used in the media library).

notificationbox 2016-12-19T08:01:00+00:00

Hi there, Thank for that. The resume function works well now. I’ve noticed that after the cleanup it has removed some of the images used for the Woocommerce category page. I’m using a caching plugin, do I need to remove all cached files and then open up the page to see if it get’s regenerated?

OriginalEXE 2016-12-19T10:23:00+00:00

Hi, yes, ideally after installing this plugin you should purge your pages cache, and the plugin should create the image sizes the website needs on the first request.