Picture compression is being done by decreasing the size of the picture without the loss of quality.
An picture taken using One plus one phone with 13mp camera HDR mode has a raw size of 51 mb is being compressed to size less than 100kb for optimal server upload.