Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Adjust WordPress jpeg image quality
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