Improve Image Quality of Re-Sized Images Automatically in WordPress

When you upload an image within WordPress and select a size, you may notice the image quality isn’t as good as the original. Luckily this little piece of code will sharpen your images increasing their quality 10 fold. There are plugins that do exactly the same thing but why bloat your WordPress install? Simply paste the below code into your functions.php file: