How To Change WordPress JPEG Image Compression
How To Change WordPress JPEG Image Compression

Have you ever submitted a picture to WordPress and been puzzled as to why it appears pixelated on the front end? This is exactly why Image Compression is required.

What Is Image Compression and Why Is It Important?

If the original image can be encoded with some sort of tiny number involving bits, it is usually regarded as a data compression setting known as Image Compression. The whole point of image compression is to eliminate all types of image redundancy and store or transfer data in a much more efficient way. 

Image Compression is quite important because Images are a crucial aspect of every website, whether developed using CMS platforms or raw coding. If you have larger-sized photographs on your website [for example, 5000 X 5000], it won’t make sense because your images won’t appear in this exact size on the page. Furthermore, these larger-size graphics can slow down your website, which is a significant loss. Professionals compress photographs before posting them to websites for this reason. Compression is necessary if you want to keep your website SEO friendly.

You can also watch the YouTube tutorial:

What happens with uncompressed images?

Inside its core, photo compression is if you remove or perhaps group selected parts of a new picture file inside to lessen its size. Precisely why do that? 

  • For internet site optimization- Sites using uncompressed images could take longer to load and could cause your website visitors to bounce as a consequence of this.
  • For giving and uploading photos- Uploading an uncompressed image usually takes a while, and many email servers include a quality reduction.
  • For reducing the storage influence on your current hard drive, typically.

In case you didn’t know, WordPress compresses your photos for improved performance on all devices by default. Well, now this article will show you how to “raise or decrease JPEG image compression in WordPress.”

Only the derivative thumbnail versions created when uploading photos to the media library are affected by the JPEG compression setting in WordPress.

When you upload a JPEG image to WordPress, the image is automatically compressed to 90% quality. In WordPress 4.5 and WordPress 5.0, the compression ratio was reduced to 82 percent to improve site performance for mobile visitors.

What is the use of JPEG Image Compression?

Visual compression aims to decrease the lack of connectedness associated with the redundancy of image information to store or transmit data efficiently.

How does one change the JPEG Image Compression in WordPress?

How To Change WordPress JPEG Image Compression
  • First, we’ll go to the Dashboard of our WordPress website.
  • Go to Appearance.
  • Then click on Theme Editor.
  • On the right-hand side of the screen, click on Theme Functions.
  • Now, we’ll be adding some codes.
How To Change WordPress JPEG Image Compression

NOTE: Before adding any type of code or making any code-related changes, Make sure you have a recent backup of your website in case anything goes wrong so that you can easily recover it afterwards. 


add_filter(‘jpeg_quality’, function($arg){return 100;});
  • Now, go ahead and click on the Update File section. 
How To Change WordPress JPEG Image Compression

You’ll see how the file has been successfully updated. 

Hopefully, this article successfully assisted you in figuring out how to alter JPEG image data compression in WordPress.

Also Read: How To Change The Default Search URL Slug In WordPress 


Submit a Comment

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

Need Professional Help?

We can help you with website fixes and ongoing maintenance.