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.php
But 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.