• lemmyng@lemmy.ca
    link
    fedilink
    English
    arrow-up
    1
    ·
    5 months ago

    WebP supports both lossy and lossless compression.

    WebP did not always support lossless compression. It’s conceivable that the tools’ developers made the decision before that.

    Images on the web usually aren’t large enough for this to make a significant difference, and it can sometimes be offset by the quicker download time.

    That does not fit the use case of diagramming tools. They usually have comparatively few assets that are used multiple times in the same document. The larger the document, the more benefit lower CPU cost has. And I’ve seen LARGE diagrams.

    libjpeg and libpng have had a number of CVEs too though.

    Fair. I’m just speculating that it might be a contributing factor for the tools still not supporting the format.

    • dan@upvote.au
      link
      fedilink
      arrow-up
      2
      ·
      5 months ago

      WebP did not always support lossless compression. It’s conceivable that the tools’ developers made the decision before that.

      WebP was first released in 2010, and lossless support was added in 2011. I really doubt there were tools built between 2010 and 2011 that haven’t been updated since then.

      That does not fit the use case of diagramming tools. They usually have comparatively few assets that are used multiple times in the same document.

      SVG is probably a better fit for this use case.

      • lemmyng@lemmy.ca
        link
        fedilink
        English
        arrow-up
        1
        ·
        5 months ago

        SVG is probably a better fit for this use case.

        Absolutely… when available. But many companies/teams do not release SVG artwork. PNG material is much more commonly available, and actually works with these tools.