Thursday, April 5, 2012

Prevent WordPress to compress your jpg images

Prevent WordPress to compress your jpg images

Here I describe how you Prevent WordPress to compress your jpg images because by default, WordPress compress your uploaded jpg images

To do this just Open functions.php file from your theme folder and paste the following code below in the functions.php file:

add_filter('jpeg_quality', function($arg){return 100;});

Now Save the file.

 

I just got my #domain @BigRock. Get upto 25% off with my personalized coupon link Get upto 25% off