Jetpack Site Accelerator Disable Image Compression
-
Hey all. I hope this finds you well.
I have the Site Optimizer installed but I disabled “Speed up image load times.” In this article, Jetpack offers some sample code to disable image compression (default value is 90):
`function sa_custom_params( $args ) {
$args[‘quality’] = 100;return $args;
}
add_filter( ‘jetpack_photon_pre_args’, ‘sa_custom_params’ );`Would I just copy and paste this exact code in my PHP functions file? I’ve edited a lot of CSS but never messed with PHP so I wanted to be sure. I have Jetpack backup so I’m not worried about that FYI.
Another related question. Will having “speed up static file load times,” which I have active, make much a difference?
I use Fastest Cache, server based in East Coast US. Works great and have had no issues with Jetpack static file enabled. Load time is quite good in the US but wanted to enabled the CDN for overseas traffic. There’s maybe one image per article on average. Not that large. But the image quality gets reduced drastically with the speed image load time enabled.
Thanks
- The topic ‘Jetpack Site Accelerator Disable Image Compression’ is closed to new replies.