This may be unfamiliar to everyone. WordPress compresses the image quality by default to 90% after the image is uploaded, the benefits of this operation can greatly speed up page loading and reduce the server space occupied by images. However, some webmasters (including me)
This may be unfamiliar to everyone. WordPress compresses the image quality by default to 90% after the image is uploaded, the benefits of this operation can greatly speed up page loading and reduce the server space occupied by images. However, some webmasters (including me) are still concerned about the compression of the 10%, and still hope that the quality of the 100% original will make me comfortable.
So how can I disable WordPress from automatically compressing and uploading image quality? Insert the following code into your topic functions. php file, and the upload quality will not be compressed in the future.
Add_filter ('jpeg _ quality ', create_function ('', 'Return 100 ;'));
On the other hand, the image compression quality may be higher:
Add_filter ('jpeg _ quality ', create_function ('', 'Return 80 ;'));
Change the parameters following the above code to the compression ratio you like.