Upload image and resize it on the fly

Hello,

I would like to know if anyone has any good info on how to upload an image in a forum with YII2 and resize it on the fly please.

Thank you,

Ben