add_filter( 'jpeg_quality', create_function('', 'return 50;' ) );
Sorry, but you are looking for something that isn't here.