Android snippet code for image compression Whatsapp-like
The proposed method compresses images, maintaining the original aspect ratio and preventing a significant loss of quality, and converting them to JPEG using the lossy compression technique. This works well under the assumption that most of the images are photos/images of the camera and have a dynamic color range. Therefore, it is used the psycho-visual redundancy, which in fact leads to a loss of "unimportant" information, which the human eye is not able to detect.