• Resolved svkrs

    (@svkrs)


    Hello, i cannot find how much cpu consume converting image ? and how much when conver to webp via htaccess what is restrictions of images example if i have 100.000 images is good for use or ? I dont see anything good only set timeout to 0 which is not a good method to add that on server because only that can cause a lot of cpu ram resource apache connection nginx etc…

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author WP Media

    (@wp_media)

    Hi @svkrs

    Thank you for contacting us!

    Let me clarify that the WebP conversion is happening during the image optimization and if the “Create WebP” option is enabled. Unfortunately, there is no standard percentage of CPU consumption to share. The optimization of an image depends on its size, the number of thumbnails that are optimized along with the original image, and the WebP conversion.

    Something important when having a big number of images to be optimized is to add the following to your wp-config.php file (before the “That’s all! Stop editing…” message) to increase the amount of memory available for image optimization (this can be a larger number if your host/server will allow):

    define( ‘WP_MEMORY_LIMIT’, ‘256M’ );

    Have you experienced any issues when trying to optimize images?

    Best Regards,

    Ioanna

    Thread Starter svkrs

    (@svkrs)

    I have Congratulations, you have optimized 3,387,720 images but i want to turn to webp conversation now i see my cpu load with optimizations is higher i am try helper plugin but also i am saw with example plugin to convert from 4 to 1 is increase cpu i am think how that plugin only can make stable cpu. Do you have any plugins which i can use to reduce cpu load when is images uploaded and converting and is improtant to check “backup” images because i think also backup can increase CPU. btw so for webp images firs images be uploaded converted to small sizes after that go to convert to webp if i am right ?

    Plugin Author WP Media

    (@wp_media)

    Hi @svkrs

    Thank you for the updates.

    There is a way to significantly reduce the server calls, which should make lower CPU usage, so we can try that.

    We have developed a helper plugin that you can use to slow down AJAX calls to once every 120 seconds, which can be downloaded using the following link:

    https://github.com/wp-media/imagify-helpers/raw/master/various/imagify-beat-control/imagify-beat-control.zip

    Regarding the thumbnail sizes they are created automatically once you upload an image and this is not related to Imagify. Once you optimize the uploaded image they are optimizing as well the thumbnail sizes and the WebP version of them is created during the optimization if you have the “Create WebP” option enabled.

    Let me know if you need further assistance. I’ll be happy to help.

    Best Regards,

    Ioanna

    Thread Starter svkrs

    (@svkrs)

    That plugin is old 2 years i am try and i am sure how increase load what will be if i change code to

    $settings['interval'] = more seconds?;
    Thread Starter svkrs

    (@svkrs)

    Just to add i am using on site videos which show like thumb and with imagify that wont make cover for that thumb is there an functions to fix that, when is disabled that make normal cover for video thumb

    Plugin Author WP Media

    (@wp_media)

    Hi @svkrs

    You can increase the interval to even longer by changing the 120 to the number of seconds you’d like it to be. However, the maximum value this should be set to is 600 (10 minutes) and that comes with a cautionary note:

    It would override all other intervals if they are shorter. Needed for some hosts that cannot handle frequent requests and the user may exceed the allocated server CPU time, etc. The minimal interval can be up to 600 sec. however setting t to longer than 120 sec will limit or disable some of the functionality (like post locks). Once set at initialization, minimalInterval cannot be changed/overridden.

    About your question regarding the video thumb, can you please try to disable the display WebP option and clear your cache, is the issue fixed? If so, the only solution is to choose the rewrite rules way to display your WebP images unless you are using a Cloudflare/ CDN.

    Let me know if you need further assistance. I’ll be happy to help.

    Best Regards,

    Ioanna

    Thread Starter svkrs

    (@svkrs)

    Okay thank you i am again add that helper plugin but in peak time when i am try to open library i got timeout serve specifications is perfect. About webp they also withut webp cannot generate thumb pictures for video ;( my timeout is 120 seconds

    • This reply was modified 3 years, 2 months ago by svkrs.
    Plugin Author WP Media

    (@wp_media)

    Hi @svkrs

    If there are timeout issues when you are trying to open the Media Library can you please try the following suggestion?

    When you are viewing pages related to Imagify, Imagify counts the number of optimized and unoptimized images you have. In most cases, there’s no issue, but we have seen a few instances where a high optimized image count slows the loading of the page down.
    If you need, you could try adding the following code to your theme’s functions.php file:

    function pfx_limit_imagify_optimize_count( $count ) {
      return 1;
    }
    add_filter( 'imagify_count_optimized_attachments', 'pfx_limit_imagify_optimize_count' );
    add_filter( 'imagify_count_attachments', 'pfx_limit_imagify_optimize_count' );
    add_filter( 'imagify_count_unoptimized_attachments', 'pfx_limit_imagify_optimize_count' );
    add_filter( 'imagify_count_saving_data', 'pfx_limit_imagify_optimize_count' );
    add_filter( 'imagify_count_error_attachments', 'pfx_limit_imagify_optimize_count' );
    

    Remember before any change first to do a full backup of your website.

    About thumbnail sizes that do not have a WebP version created, it might be best to find the related images on the Media Library(List View) and try to re-optimize them(if they are already optimized) but make sure you have enabled the “Create WebP” option through Settings > Imagify.

    Feel free to let me know how it goes.

    Best Regards,

    Ioanna

    Thread Starter svkrs

    (@svkrs)

    Okay i will try because all day i cannot access to images due A timeout occurred 524

    Plugin Author WP Media

    (@wp_media)

    Hi there,

    I’m following up to see if I left any of your questions about Imagify unanswered. 

    If you have any further questions about Imagify, feel free to let me know, I’ll gladly continue to assist you.

    Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘How much cpu use’ is closed to new replies.