Created
September 22, 2017 15:32
-
-
Save stuartduff/64adfc1664c206bdc04cf5e3c6e15210 to your computer and use it in GitHub Desktop.
Adjust WordPress jpeg image 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
function sd_regenerate_thumbnail_quality() { | |
// increase or decrease from 0 to 100 for a percentage of image quality. | |
return 100; | |
} | |
add_filter( 'jpeg_quality', 'sd_regenerate_thumbnail_quality'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment