Settings

Theme

JavaScript Image Compress Using HTML5 Canvas and File API Before Upload

phplift.net

32 points by huzoorbux 6 years ago · 13 comments

Reader

Piskvorrr 6 years ago

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

This can be done in like five lines of Javascript. Why does this even rank on HN?

devwastaken 6 years ago

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

There should be a law that says: "one shall not use var in JavaScript code examples"

  • yoz-y 6 years ago

    Don't linters complain about it nowadays? Maybe devtools should start doing it too.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection