• glibg10b@lemmy.zip
    link
    fedilink
    arrow-up
    8
    ·
    edit-2
    1 day ago

    If you’re still thinking in pixels, then you’re already behind JPEG. There are other ways to compress visual data, such as in the form of its frequency spectrum, or with vector embeddings

    • wonderingwanderer@sopuli.xyz
      link
      fedilink
      arrow-up
      5
      ·
      1 day ago

      Or in a tensor field consisting of billions of weighted parameters across several matrices which then get multiplied along specific embedded vectors, apparently…

      • CanadaPlus@lemmy.sdf.org
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        16 hours ago

        To explain a bit more, most of the information in an image is actually stuff we would never notice. The very specific way a few of a pixels slightly deviate from a perfect gradient, for example.

        The basic idea of a jpeg is to convert an image to a kind of frequency space, where each pixel corresponds to a specific wave-like pattern. It’s reversable, preserving the information. and fast conversion to do, thanks to FFT. Even without, it would only be quadratic time. Then, the algorithm crops it in that new space. (IIRC jpeg actually has a few extra features, as well)