The principle is to use an algorithm to reduce the number of colors and reduce the size of the image.
Yes, compression will result in a slight loss of image quality.
No, all operations are performed in your browser.