Created
January 8, 2018 14:54
-
-
Save ucheng/0d55b7b38fee1ab0ba57ba9bcdc7e502 to your computer and use it in GitHub Desktop.
adjust photon image quality
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter('jetpack_photon_pre_args', 'jetpackme_custom_photon_compression' ); | |
function jetpackme_custom_photon_compression( $args ) { | |
$args['quality'] = 80; | |
$args['strip'] = 'all'; | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment