Skip to content

Instantly share code, notes, and snippets.

@ucheng
Created January 8, 2018 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ucheng/0d55b7b38fee1ab0ba57ba9bcdc7e502 to your computer and use it in GitHub Desktop.
Save ucheng/0d55b7b38fee1ab0ba57ba9bcdc7e502 to your computer and use it in GitHub Desktop.
adjust photon image quality
<?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