The web’s clipboard, and how it stores data of different types
Submitted 1 month ago by lemmydividebyzero@reddthat.com to technology@lemmy.world
https://alexharri.com/blog/clipboard
Submitted 1 month ago by lemmydividebyzero@reddthat.com to technology@lemmy.world
https://alexharri.com/blog/clipboard
hark@lemmy.world 1 month 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.
LodeMike@lemmy.today 1 month ago
If it was jpeg you’d be complaining about how garbage it looks.
hark@lemmy.world 1 month ago
Maybe. Would be nice to have multiple options at least.
lemmydividebyzero@reddthat.com 1 month 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…
blackbeans@lemmy.zip 1 month 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.