• shneancy@lemmy.world
    link
    fedilink
    arrow-up
    8
    arrow-down
    2
    ·
    edit-2
    3 days ago

    also if you only view them and don’t care about editing them you can straight up rename the *.webp to *.jpg

    it’ll still open as a jpg outside of your browser, but it apps that you’d use for image editing still won’t want it

    • hoshikarakitaridia@lemmy.world
      link
      fedilink
      arrow-up
      20
      ·
      2 days ago

      Iirc that means it’ll stay a webp, some program will just fail to open them and the once that can only do it because they recognize the file header and therefore disregard your file extension shenanigans.

      What I’m saying is if you do that it’s funny but also completely useless.

      • shneancy@lemmy.world
        link
        fedilink
        arrow-up
        6
        arrow-down
        6
        ·
        edit-2
        2 days ago

        i am perfectly aware of that, but if you only want to view the .webp file outside of your browser, you don’t need to convert it properly, just rename the extansion

        • black0ut@pawb.social
          link
          fedilink
          arrow-up
          12
          ·
          2 days ago

          Yes, and no. No app will display the image if it wasn’t already capable of displaying webp, period.

          However, there are many places (mainly websites where you can only upload certain formats, but it can also be apps) where the underlying infrastructure supports webp, but they do a simple extension check first with a list of file extensions that doesn’t include .webp. In those cases, changing the extension to .jpg will get the image through the filter, and the underlying system will detect the format using the magic number at the beginning of the file.

          The same thing can happen when your OS has no associated app to open .webp, but the app it uses for .jpg can also display .webp.