How to compressed image after take camera

hi anyone, How to compressed image after take camera?
its posibble ?

thanks in advance