delarge
1/11/2018 - 10:46 AM

Edit Wordpress image compression levels

Set to 100 for 'off' - default is 90

<?php
// WP image quality / compression
add_filter('jpeg_quality', function($arg){return 100;});
add_filter( 'wp_editor_set_quality', function($arg){return 100;} );
?>