Created
November 23, 2012 18:27
-
-
Save caratage/4136745 to your computer and use it in GitHub Desktop.
Set WordPress thumbnail quality to 100%
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
/** | |
* jpeg_quality_callback | |
* | |
* set thumbnail quality to 100% | |
*/ | |
function jpeg_quality_callback($arg) { | |
return (int)100; | |
} | |
add_filter('jpeg_quality', 'jpeg_quality_callback'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment