Changing Image Quality Setting
-
Help – I’m pulling my hair out trying to figure out how to get the image quality setting changed for the Add Media function.
One recommendation I tried was to add the following line of code to my theme’s function.php:
add_filter( ‘jpeg_quality’, create_function( ”, ‘return 70;’ ) );Well that didn’t work.
Next I changed the quality setting from 90 to 70 in
wp-admin\includes\image-edit.phpThat didn’t work either.
I next tracked down a quality setting in the file
wp-includes\deprecated.php
and changed 90 to 70 there as well. Still no change in the generated images.I have searched through every php and js file in admin, content, and includes and can find no other references to jpeg_quality.
Does anyone have any ideas?
PS – I verified that none of these changes worked by uploading multiple differently named versions of the same source image file. In every case the output files were identical in size.
- The topic ‘Changing Image Quality Setting’ is closed to new replies.