Settings

Theme

JavaScript Image Compress Using HTML5 Canvas and File API Before Upload

phplift.net

32 points by huzoorbux · 13 comments

Reader

4 threads
Piskvorrr

Database hugged to death :(

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

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

accosine

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

devwastaken

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

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

  • yoz-y

    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