image formats

jpeg

  • lossy compression, discards some details that human eyes are bad at noticing
    • human eyes are better at detecting changes in brightness than from changes in hue or saturation. jpeg keeps brightness at full resolution but does not store all the color

png

  • lossless compression, every single pixel is preserved every time the image is saved
    • and therefore larger file sizes