About jpeg_quality filter

Posted in: Newspaper
Post count: 51

I want to use a function that you indicate in the optimization manual.

add_filter ('jpeg_quality', create_function ('', 'return 50;'));

And they also suggest “50%”, and that is a trocater the value to provide a desirable quality.

Also, it says to use the “Force Regenerate“, after put the code above in the file functions.php

The question is:
If I put ‘80% ‘and do not get the results I want, can I try again with another value (example: 50%)?

The image will not lose more quality. Why was it compressed the first time?

That is, every time I use this function, the image would get worse quality?

Thank you
Alexandre

  • This topic was modified 8 years by alecaus.
  • This topic was modified 8 years by alecaus.
Post count: 20688

Hi,

It may be required to remove the code and regenerate again in order to recreate the original thumbnails quality. You could for example create a testing sub-domain and install the theme there and make tests. This would be useful when trying different things on the website, without many risks.
I found some more info about it here
https://premium.wpmudev.org/blog/fix-jpeg-compression/
http://www.wpbeginner.com/wp-tutorials/how-to-increase-or-decrease-wordpress-jpeg-image-compression/

Thanks

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.