Skip to content

Instantly share code, notes, and snippets.

@davoraltman
Created March 27, 2018 09:39
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 davoraltman/3bef91e4aa886a570fe7e831ee9b9809 to your computer and use it in GitHub Desktop.
Save davoraltman/3bef91e4aa886a570fe7e831ee9b9809 to your computer and use it in GitHub Desktop.
Lossy Image Compression With Photon
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