is jpeg_quality filter not allowed ?

wordpress

#1

Hi all, one reviewer sent me a screenshot and said “Please dont do this”… there are 2 functions, 1 is simple listing child pages with wp_list_pages() and the second at the top is the add_filter below…

I am not sure if he is referring to both or the following one… is it not allowed to add jpeg_quality filter >

add_filter( 'jpeg_quality', 'my_jpeg_quality' );
add_filter( 'wp_editor_set_quality', my_jpeg_quality' );

function my_jpeg_quality( $quality ) { return 100; }

thanks