Comment on New Youtube Web Update Requires HTML5 Canvas
LodeMike@lemmy.today 5 months ago
Google uselessly uses the canvas for its reverse image search. And I do mean uselessly - The image you upload is put onto the canvas, then immediately relayed to the server and never used again.
Celestus@lemm.ee 5 months ago
LodeMike@lemmy.today 5 months ago
Yes because as we all know that’s too hard for Google to achieve.
Celestus@lemm.ee 5 months ago
LodeMike@lemmy.today 5 months ago
Yes because as we all know 100% of browsers have a canvas.
purplemonkeymad@programming.dev 5 months ago
It’s probably more of a scale thing, going a conversation server side need CPU time, if it can be done prior to upload then server time is reduced. I think a lot of websites do client side processing so they can do more requests per server instance.
kevincox@lemmy.ml 5 months ago
It would be wasteful to upload the full size image only to throw most of it away. JPEG compression is very cheap, especially at low resolutions (I assume that image search uses a pretty low-resolution source image). Doing it this way is actually what I would do for best user experience. (Not saying that they aren’t doing other malicious things, but doing the resizing on the client is actually a good idea)