This module resize an image using canvas and javascript. The intention is to reduce the image before uploading it, but can be used for whatever you need