Answer the question
In order to leave comments, you need to log in
How to disable image compression in WordPress?
Hello!
The site is built on WordPress + WooCommerce.
When I add a picture of a product, the picture is compressed and shown on the site with worse quality.
I tried to remove the compression with the hook and the TinyPNG plugin, both options do not help.
Hook:
add_filter( 'jpeg_quality', function ( $quality ) {
return 100;
} );
Answer the question
In order to leave comments, you need to log in
I tried to remove the compression with the hook and the TinyPNG plugin, both options do not help.
What do I need to do in order for the image to be displayed on the site in its original quality?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question