Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

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 paulvanbuuren/06774e187dc3316c7347 to your computer and use it in GitHub Desktop.
Save paulvanbuuren/06774e187dc3316c7347 to your computer and use it in GitHub Desktop.
WordPress: Remove Automatic JPEG Compression
// from: http://www.codeinwp.com/blog/wordpress-image-code-snippets/
// ============================================================================
// WordPress: Remove Automatic JPEG Compression
// ============================================================================
add_filter( 'jpeg_quality', 'smashing_jpeg_quality' );
function smashing_jpeg_quality() {
return 100;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment