this post was submitted on 07 Feb 2024
59 points (98.4% liked)
Firefox
17954 readers
377 users here now
A place to discuss the news and latest developments on the open-source browser Firefox
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Ah nah Canvas is used for so much stuff and it's sometimes way under your radar in stuff you wouldn't at all expect
For instance
I'll let you look at the comments to see how they circumvented this
I've seen canvas being used for github-like random avatars, graphs, logos, to create dynamic previews of images on the page in online shops, ...
On the topic of Reddit, trying to submit a video there with Canvas off would result in it being submitted with a glitched thumbnail
That's a big one, generating thumbnails client-side rather than running an imagemagick instance on the server to re-size pictures on upload
I used it to generate hashes of the pictures as well, once.
Adding watermarks too. There are virtuous watermarks as well, I remember having to code up a transparents watermark over people's IDs to make sure that when they submitted their renters dossier (it was a real estate renting service), it couldn't be used to commit identity theft by the homeowner later down the line or re-used for something else.