Denis Ryabov
Forum Replies Created
-
It’s possible to disable images optimization and rescaling in Advanced settings (see “Optimize images” section). And, finally, uninstallation of PageSpeed Ninja reverts all images back to original state.
Seems there is a conflict with our “Prioritize visible content” optimizations (lazy image loading, etc.). Try to just disable this section, I’ll check actual details of this issue later.
OK, the temporary patch is to found line #486 in wp-content/plugins/psn-pagespeed-ninja/public/class-pagespeedninja-public.php
$ress_options['plugins']['Ressio_Plugin_WpLazyload']['srcsetwidth'] = array_keys($widths);
and wrap it into the followingifcondition:if (count($widths)) { $ress_options['plugins']['Ressio_Plugin_WpLazyload']['srcsetwidth'] = array_keys($widths); }Hmm, I don’t understand what an object comes to Ressio_Plugin_Lazyload class (and how it is possible at all). May I ask you to edit wp-content/plugins/psn-pagespeed-ninja/ress/classes/plugin/lazyload/lazyload.php file in the following manner: found a line
$params = $this->loadConfig(dirname(__FILE__) . '/config.json', $params);
and insert following code after that line:
file_put_contents(__FILE__.'.log', var_export($params,true));
? It will save lazyload input settings to lazyload.php.log file in the same directory. Could you post there the content of this file?Unfortunately, currently PageSpeed Ninja plugin doesn’t support multisite mode.
As to Nginx rules, we have a draft snippet that seems to be quite stable and most likely will be included into one of next PageSpeed Ninja releases.
Which WordPress version do you use?
As a partial solution, extract public/assets/img/thumb-spacer.png file from AAWP distribution package, and replace wp-content/plugins/aawp/public/assets/img/thumb-spacer.png file on your website.
I guess it is not related to AWWP, because of https://getaawp.com/wp-content/plugins/aawp/public/assets/img/thumb-spacer.png is a valid transparent image.
Did you try to uninstall PageSpeed Ninja? It should restore all optimized images to original state.
And finally, do you use latest PageSpeed Ninja version 0.9.37?
What version of PHP do you use? Which method (GD2 or ImageMagick) do you use (see Optimize Images section in the plugin’s Advanced settings)?
I see that /wp-content/plugins/aawp/public/assets/img/thumb-spacer.png image on your website is not transparent, but it seems that original image has to be transparent to don’t affect background-image CSS style of its parent element. I’ve tried to do some local tests, but I’m not able to reproduce the issue (transparency is correctly preserved on my test server).
Got it. There is an issue with optimization of transparent png images. Uninstall PageSpeed Ninja to restore original images (deactivation is not sufficient) and wait for today’s upgrade (ver. 0.9.38).
Does AAWP images displayed properly with PageSpeed Ninja plugin disabled? Currently it looks like there should be an AAWP script that makes thumb spacer invisible, but it is not executed for unknown reason.
Currently it is possible to disable “Merge embedded scripts” entirely. Maybe further there will be a way to disable merging by a partial text match.
Scheduled for 0.10.0.
Yes, it does. In 0.9.38 registration of new image sizes will be limited to the “Fit” image rescaling, and in 0.10.0 it will be optional even in this case.
We are going to implement this feature (to exclude individual pages from optimization) in the next significant release (version 0.10.0).