Open Menu
AllLocalCommunitiesAbout
lotide
AllLocalCommunitiesAbout
Login

The web’s clipboard, and how it stores data of different types

⁨48⁩ ⁨likes⁩

Submitted ⁨⁨1⁩ ⁨day⁩ ago⁩ by ⁨lemmydividebyzero@reddthat.com⁩ to ⁨technology@lemmy.world⁩

https://alexharri.com/blog/clipboard

source

Comments

Sort:hotnewtop
  • hark@lemmy.world ⁨1⁩ ⁨day⁩ ago

    Oh, so that’s why when I use the snipping tool and paste it, it’s a png instead of another format that could take up less space.

    source
    • blackbeans@lemmy.zip ⁨5⁩ ⁨hours⁩ ago

      Png is the right choice as it is lossless. Jpg works well for photos but it’s not designed for abstract depictions such as the lines, panes and texts in applications and web sites. Meaning artifacts become noticeable with smaller jpg file sizes.

      source
    • LodeMike@lemmy.today ⁨20⁩ ⁨hours⁩ ago

      If it was jpeg you’d be complaining about how garbage it looks.

      source
      • hark@lemmy.world ⁨8⁩ ⁨hours⁩ ago

        Maybe. Would be nice to have multiple options at least.

        source
    • lemmydividebyzero@reddthat.com ⁨1⁩ ⁨day⁩ ago

      This makes me curious, if in case of vector graphics (SVG), they kind of don’t need a separate mime type… They could just put that in the text/html slot, because you can inject SVG into html…

      source