Change record status: 
Project: 
Introduced in branch: 
11.x
Description: 

file_validate_image_resolution() is a validation hook. Most validation hooks check a value and return an error. However, file_validate_image_resolution() does much more.

We should:

deprecate file_validate_image_resolution()
create a ImageResizer service that performs the logic or checking dimensions and resizing
Move setting messages to calling code, e.g. in upload form validators.

Impacts: 
Module developers