repetitive image generation
-
I’m the author of the EWWW Image Optimizer, and one of my users contacted me about an alert EWWW IO had thrown about image regeneration.
EWWW IO hooks into the WP_Image_Editor class, so that it is able to detect when plugins are saving an image and then it can optimize said image. I’ve built in a function to detect when the same image(s) are re-generated multiple times (10+) and in this case it appears the aq-resizer library that Master Slider is using to resize the slides is not properly checking the disk for existing resizes before generating a new one.
The user mentioned that they use the Master Slider on multiple sites and they only have issues on one site. Because of that, I’m suspecting it is something peculiar to the dimensions of the slider in relation to the original images.
As an example, one of the images is 2048×1362 and it is being scaled to 1400×931
Another image is 2592×1936 and is being scaled to 1400×1046.
Let me know if you need any additional information.Should have also posted the trace log from PHP:
PHP trace:#0 ewww_image_optimizer() called at /var/home/user/site/www/wp-content/plugins/ewww-image-optimizer/image-editor.php:170 #1 _save() called at /var/home/user/site/www/wp-includes/class-wp-image-editor-gd.php:376 #2 save() called at /var/home/user/site/www/wp-content/plugins/masterslider/includes/lib/aq-resizer.php:162 #3 process() called at /var/home/user/site/www/wp-content/plugins/masterslider/includes/lib/aq-resizer.php:248 #4 msp_aq_resize() called at /var/home/user/site/www/wp-content/plugins/masterslider/includes/msp-functions.php:492 #5 msp_get_the_resized_attachment_src() called at /var/home/user/site/www/wp-content/plugins/masterslider/includes/classes/class-msp-gallery-extention.php:161 #6 gallery_output() called #7 call_user_func_array() called at /var/home/user/site/www/wp-includes/plugin.php:235 #8 apply_filters() called at /var/home/user/site/www/wp-includes/media.php:1632 #9 gallery_shortcode() called #10 call_user_func() called at /var/home/user/site/www/wp-includes/shortcodes.php:326 #11 do_shortcode_tag() called #12 preg_replace_callback() called at /var/home/user/site/www/wp-includes/shortcodes.php:223 #13 do_shortcode() called #14 call_user_func_array() called at /var/home/user/site/www/wp-includes/plugin.php:235 #15 apply_filters() called at /var/home/user/site/www/wp-content/themes/Divi/epanel/custom_functions.php:207 #16 truncate_post() called at /var/home/user/site/www/wp-content/themes/Divi/index.php:54 #17 include() called at /var/home/user/site/www/wp-includes/template-loader.php:75 #18 require_once() called at /var/home/user/site/www/wp-blog-header.php:19 #19 require() called at /var/home/user/site/www/index.php:17
The topic ‘repetitive image generation’ is closed to new replies.