is it a formatting step that an image goes through when uploaded? I’m tired of converting image after image back into jpg, so if there’s like a step I can take to avoid it being a webp, it would help to know

  • @Chronographs@lemmy.zip
    link
    fedilink
    English
    401 year ago

    Jpg is lossy and throws away information every time it is used, that’s why you get the “deep fried effect” when you re-encode something repeatedly. PNG is lossless so it’s a perfect replica of whatever image you encode with it. It does take up more space however.

    • @LillyPip@lemmy.ca
      link
      fedilink
      14
      edit-2
      1 year ago

      Minor niggle: the ‘deep fried effect’ isn’t because jpg throws away information every time, it’s because the compression algorithm averages pixel boundaries, and that averaging multiplies with each compression pass.

      It can actually bloat the size of the file by adding information – adding data to previously null pixels, whereas png would keep them clean.

      e: it achieves this through pixel averaging (fuzzing), which is why you’ll see grey artefacts bleeding into the pixels around line art. This is magnified with each compression.

      • @Slotos@feddit.nl
        link
        fedilink
        181 year ago

        You’re conflating “data” with “information”.

        Repeated re-encoding loses information. “The compression algorithm averages pixel boundaries” is a perfect example of losing information.
        That it sometimes results in more bits of data is a separate phenomenon altogether.

    • @uis@lemmy.world
      link
      fedilink
      1
      edit-2
      1 year ago

      There is lossless JPEG, but nobody uses it. And there are lossy PNG encoders, and some people use them.