all functions timing out
-
Hello –
We have a plain vanilla wordpress site and I’m trying to use EEEW to compress images. It seems to be timing out during any process, including the PNG to jpg feature. Is there anything I can do to get through this? We’re hosted on siteground and i wonder if this is simply a server resource problem.
thanks, DAve
-
optimizing PNG images is particularly problematic, especially on Siteground servers, as they limit you to 30 seconds on the upload.
If you turn on EWWW’s debugging setting, and post the debug information from the settings page, I’ll see if there is anything specific you can do.
Also, are these mostly PNG images, or a mix of JPG/PNG?Sure, here it is. Most of the images are PNG, yes, and I would love to convert them to jpg’s in some cases.
I also have a ticket open with siteground and we’ll see what they say. thanks!!
EWWW IO version: 254 WP version: 4.3.1 PHP version: 50530 ewww_image_optimizer_preinit() ewww_image_optimizer_gallery_support() ewww_image_optimizer_admin_init() ewww_image_optimizer_init() ewww_image_optimizer_cloud_init() ewww_image_optimizer_exec_init() cloud options enabled, shutting off binaries ewww_image_optimizer_disable_tools() ewww_image_optimizer_cron_setup() ewww_image_optimizer_cron_setup() ewww_image_optimizer_settings_script() ewww_image_optimizer_bulk_script() ewww_image_optimizer_aux_images_script() ewww_image_optimizer_webp_script() ewww_image_optimizer_options() ABSPATH: /home/sourcese/public_html/ home url: http://www.sourceseek.com site url: http://www.sourceseek.com ewww_image_optimizer_savings() querying savings for single site query to be performed: SELECT SUM(orig_size-image_size) FROM source_ewwwio_images savings found: 4898029 ewww_image_optimizer_cloud_verify() verification success via: https://45.55.108.178 verification body contents: great ewww_image_optimizer_cloud_quota() quota data retrieved: 0 -4954 0 cloud JPG: on cloud PNG: on PNG extra compress: off cloud GIF: on cloud fast lossy: on remove metadata: on lossy JPG: on lossy PNG: on bulk delay: 10 scheduled optimization: off deferred optimization: off disable auto-optimization: off include media library: off ewww_image_optimizer_get_image_sizes() Array ( [thumbnail] => Array ( [width] => 150 [height] => 150 ) [medium] => Array ( [width] => 300 [height] => 300 ) [large] => Array ( [width] => 1024 [height] => 1024 ) ) disabled resizes: thumbnail: optimization=enabled creation=enabled medium: optimization=enabled creation=enabled large: optimization=enabled creation=enabled skip images smaller than: 0 bytes skip PNG images larger than: 0 bytes exclude originals from lossy: off exclude originals from metadata removal: off use system binaries: no jpegtran disabled: no optipng disabled: no pngout disabled: no gifsicle disabled: no webp conversion: off alt webp rewriting: off jpg2png: off ewww_image_optimizer_jpg_background() ewww_image_optimizer_jpg_background() ewww_image_optimizer_jpg_quality() png2jpg: on gif2png: off max_execution_time: 600Ok, so I think the part that is causing problems is having lots of PNGs, and using PNG2JPG. When doing local optimization, there is a way around the slow PNG optimization, but I’ll need to look through the code to double-check the best way to do it with the API.
In the meantime, can you post links to 2-3 PNG images that you’re trying to convert?
hmm, so the API doesn’t have a way to short-circuit the optimization separate from conversion, but here’s what you can do:
1. Turn off the JPG and PNG cloud options, as well as the lossy options. Leave GIF Cloud optimization turned on, and leave PNG2JPG turned on.
2. On the advanced tab, make sure to disable jpegtran, optipng, and pngout.
3. Run a bulk optimize on all your images. This will basically attempt PNG2JPG using either GD or ImageMagick without doing any optimization, and should go relatively fast.
4. Set everything back to the way you had it (basically undo #1, you can double-check your settings via the debug info you posted), and then run the Bulk Optimize with Force Re-optimize checked.
Just to give some perspective, here is the root of the problem (based on what you’ve said so far): You have large, 1+ MB PNG images that ought to be JPG instead. When you attempt to optimize a PNG that large, it can take up to a minute (or more), just for the original image. Fortunately, you only have 3 resizes, but that could add another minute to the optimization. Then the plugin will try to convert it to a JPG, and optimize the JPG for comparison with the fully optimized PNG image. The JPG portion is quite a bit faster, but added on top of the 1-2 minutes already, it’s pretty much impossible to get that done within the 30 second limit with Siteground.
The topic ‘all functions timing out’ is closed to new replies.