Hacker News new | ask | show | jobs
Show HN: Minipic converts and compresses image in browser using WASM (minipic.app)
4 points by fayazara 654 days ago
1 comments

Very interesting! Needs the ability to scale the image at the same time.
I already got background image removal working using transformers.js will see if there's a small AI Model that does this
Modern smartphones have high resolution cameras that are total overkill for use on the web. The first step in compression for the web is typically to scale and reduce the resolution.

AI is not a requirement for scaling. For example, a simple algorithm for 50% scaling is to simply skip every other pixel row and column.