add_filter( 'jpeg_quality', 'jam_custom_jpeg_quality' ); function jam_custom_jpeg_quality( $quality ) { return 100; }