• Rhaedas@kbin.social
    link
    fedilink
    arrow-up
    7
    ·
    11 months ago

    Every webp image I’ve wanted to save I just renamed the extension to png and it works fine.

    • paraphrand@lemmy.world
      link
      fedilink
      English
      arrow-up
      19
      ·
      edit-2
      11 months ago

      Renaming an extension does not actually modify the contents of the file. Some software that supports webp may look at the contents and recognize it as webp and load it. But that’s not all software.

      It’s a bad practice to do that. It’s like changing a .docx to .pdf and expecting it to be fine.

      • Rhaedas@kbin.social
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        11 months ago

        It’s absolutely not a great thing to do in general, however it does work since the file contents are apparently a modified png. And everything that I used to both look and modify it later including automated CLI level cropping commands seem to think it’s a png.

        Since it works and hasn’t broken anything, and nothing I have recognizes the webp extension, seems to be okay for this niche purpose.

    • averyminya@beehaw.org
      link
      fedilink
      arrow-up
      3
      ·
      11 months ago

      It’s a workaround but doesn’t work if you try to open the image in Photoshop to edit it without the webp plugin.