Created
July 13, 2018 17:27
-
-
Save KaineLabs/69bb38df689e6329e84dbd1e044a77a5 to your computer and use it in GitHub Desktop.
Change Images Compression Quality
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Change Images Compression Quality | |
*/ | |
function yzc_attachments_compression_quality( $quality ) { | |
// By default the quality is : 80. | |
return 80; | |
} | |
add_filter( 'yz_attachments_compression_quality', 'yzc_attachments_compression_quality' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So 80. Does that make it lighter, heavier or normal?