top | item 20024448

Show HN: Imgsquash – My image compression website project

178 points| eashish93 | 6 years ago |github.com | reply

44 comments

order
[+] 11235813213455|6 years ago|reply
It's possible to run mozjpeg, pngquant etc.. on the browser (emscripten), to offload servers from this job

Example: https://caub.github.io/misc/optim

[+] zawerf|6 years ago|reply
I really like this. Is it maintained? I am guessing the main repo is this one? https://github.com/caub/im-optim

If not, can people point me to another out of the box solution?

My use case is that I don't want to build an entire image preprocessing/thumbnailing pipeline for image uploads. But if I serve the raw image that the user uploaded, they are typically not optimized for the web. Since I am letting the user upload anything anyway, it doesn't matter whether the image processing is secure (e.g., he can totally reverse engineer the js to upload a non-compressed image, but so what). Client side compression is a pretty elegant solution since you won't even have to pay for cpu cost to process the image. If you don't care to keep the original, it will even speed up the image uploads since they are now smaller. I really see no down sides to doing this?

[+] kinlan|6 years ago|reply
Https://squoosh.app does this (note our team built this).

Also. Neat project op, love seeing all new projects that help with image compression.

[+] londons_explore|6 years ago|reply
Hmmm... So you're proposing to get a client to download a big jpeg, to resample to the right resolution, then re-upload to the server for other clients to use?

What could possibly go wrong?

[+] snek|6 years ago|reply
the chrome team released a similar tool a few months ago (https://squoosh.app). I'm curious how these compare.
[+] Etheryte|6 years ago|reply
There's also TinyPNG[1] (which also handles jpeg), which offers both an on-site tool as well as an API as a service.

[1] https://tinypng.com/

[+] karim79|6 years ago|reply
Take a look at https://kraken.io as well. Emphasis is on consistency of results and likeness to the original.
[+] verisimilitudes|6 years ago|reply
I don't see the appeal. Don't you agree it would be better if the user- ran this software on their own machines?
[+] penagwin|6 years ago|reply
At least for me there's been plenty of times where I just want to m I nify a single image, and potentially on a machine I don't have all my dev tools on.

Also I think this is project is a good side project, regardless if it's really "necessary"

[+] slig|6 years ago|reply
Most users of a tool like this don't know (or don't care) to install command line tools.
[+] Forge36|6 years ago|reply
Better in which way? With Web assembly I've heard the performance can be on-par with C. In terms of ease of install: the user requires no setup step or "download". In terms of network performance: Provided caching is setup correctly and code downloads once, I don't see the harm.

Does this project tick all of those boxes to make this production ready? I'm not sure, it certainly looks polished (I haven't reviewed the code).

[+] chrisweekly|6 years ago|reply
Reminds me of smush.it from back in the day.
[+] samstave|6 years ago|reply
Does it do face stabilization over a range of images of, say, selfies?

If not, does anyone have a recommendation for which app does this?

[+] fwip|6 years ago|reply
That's not what image compression is.