For design tutorial sites, photography sites, and image-sharing sites, image clarity is crucial. WordPress is an ideal choice for many website builders, but its online image upload compression feature gives image-heavy site owners quite a headache, sometimes forcing them to resort to paid image hosting. So here’s a WordPress tip to help.
Disabling this feature is remarkably simple — just add the following code to your active theme’s functions.php file:
add_filter('jpeg_quality', function($arg){return 100;});
If you have any questions about this tutorial, feel free to leave a comment below and I’ll be happy to help.
Thanks to @Zhang Weilong for the contribution.