Logo Pupungbp.com

Need a WordPress expert help?

How To Adjust WordPress Image Quality

Last Updated: July 4, 2020 | Reading Time: < 1 minute

Got your latest images pixelated after uploading it to WordPress? Yes, that could be irritating especially on Photography sites.  WordPress has a function to adjust the level of the image quality, as described on Developer Code Reference. Here’s how to adjust WordPress image quality.

Simply put this small code to your functions.php

function update_jpeg_quality( $quality, $context ) {
	return 100;
}
add_filter( 'jpeg_quality', 'update_jpeg_quality' );

Adjust return number to set the level of compression.

100 = No Compression applied. Change it moderate compression about 80. Anything below 80 will make your images looks pixelated but produced a minimum of file size.

Plugin Way

I found a simple and easy plugin to use; Image Quality. Once you activate the plugin go to the Settings > Media and change the quality value for the next uploaded images.

If you want to also apply the change to the previously uploaded media, you can regenerate them by using a plugin called Regenerate Thumbnails.

Looking for an affordable WordPress solution?

We offer budget-friendly WordPress website development services to meet your needs. Prices start at $10.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.