It should potentially identify this issue and respond with either an informative error message or resize the image down before processing it