How to disable WordPress JPEG image compression

By default, WordPress compress uploaded jpg images. This is a good thing because it makes the files smaller, but in some case, image quality can be more important. If you need to prevent WordPress to compress your images, simply apply this simple tip.

Instructions
Add this code to your functions.php file.