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

Yeah you are right for RGB mode there should be a specification for a format. And the priority was to save the disk space and PNG is lossless that's why JPEG is used, so what's your suggestion should we change it to PNG for all modes in PNG format ?