top | item 21246726

JavaScript Image Compress Using HTML5 Canvas and File API Before Upload

32 points| huzoorbux | 6 years ago |phplift.net

13 comments

order
[+] Piskvorrr|6 years ago|reply
Database hugged to death :(

Oh wait. It's a redirect to StackOverflow?!

https://stackoverflow.com/questions/23945494/use-html5-to-re...

[+] accosine|6 years ago|reply
This can be done in like five lines of Javascript. Why does this even rank on HN?
[+] untog|6 years ago|reply
What's the minimum number of lines before code becomes notable enough for HN?
[+] devwastaken|6 years ago|reply
browsers need to have an API to access the underlying libraries. No reason I shouldn't be able to use turbojpeg or libpng clientside. Can't even do it in WebAssembly, because simd was an afterthought.
[+] mcraiha|6 years ago|reply
There should be a law that says: "one shall not use var in JavaScript code examples"
[+] yoz-y|6 years ago|reply
Don't linters complain about it nowadays? Maybe devtools should start doing it too.