That would require image analysis, significantly increasing the complexity and it would slow down the processing (especially on slower devices). It would be better if you just crop out the white space instead. There are also potentially situations where users wouldn't want it to stop (there might be intentional white space at the bottom of a page).
Mike
Mike