Disabling image compression in the theme
-
Hi, I have setup a website to display high quality photos that are fully processed outside of wordpress and optimised for size also.
I do not want wordpress to compress the images uploaded, they do not need it.
I have modified the core files to change 90 to 100 in
wp-admin/includes/image-edit.php
wp-admin/includes/image.php
wp-includes/media.phpBut when upgraded this is overwritten. Can this change be made in functions.php that will avoid changing core files? I do not want to use a plugin if I can help it.
Is it as simple as putting the following in functions.php
‘function filter_image_quality() {
$image_quality_value = 100;
return $image_quality_value;
}’Thanks for any help.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Disabling image compression in the theme’ is closed to new replies.