Last active
August 2, 2017 10:14
-
-
Save Hexodus/680292e416fb9e43f943a31646514e9b to your computer and use it in GitHub Desktop.
Change Wordpress default image compression percentage. I'm most happy with 90% ;) Keep in mind that it applies only to new uploaded images - old ones have to be regenerated.
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 | |
add_filter('jpeg_quality', function($arg){return 90;}); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment