Compress images to upload on website

Compress images and upload them on website using the quality selected by user.

Task: https://openerp.my.openerp.com/web?#id=8680&view_type=form&model=project.task&menu_id=3942&action=327
Pad: https://pad.odoo.com/p/r.BpiW2XLoXNlh35yj

Thanks

> If a mask is given, this method updates only the regions indicated by the mask. You can use either “1”, “L” or **“RGBA” images (in the latter case, the alpha band is used as mask)**.

So according to the documentation there's no point to splitting out the alpha channel manually.