Unleash the power of compression with Lossy Loop!
__ __
/ / ___ ___ ___ _ _ / / ___ ___ _ __
/ / / _ \/ __/ __| | | |/ / / _ \ / _ \| '_ \
/ /__| (_) \__ \__ \ |_| / /__| (_) | (_) | |_) |
\____/\___/|___/___/\__, \____/\___/ \___/| .__/
|___/ |_|
This app repeatedly compresses your uploaded JPG image up to 1000 times, showcasing the fascinating effects of lossy compression.
Watch as your photo evolves (or devolves) into a cascade of artifacts and degraded pixels.
Explore the beauty of destruction—one pixel at a time!
- Save your photo in
./input - Set up
go mod init github.com/cyokozai/lossyloopgo mod tidy
- Run code
go run ./src/main.go [quality] [iteration] [method]- quality:
1 ~ 100(default: 10) orrandom - iteration:
1 ~ 1000(default: 200) - method:
jpg(jpeg) orwebp(default: jpg)
- quality:
- Build code
cd ./srcgo build -v -o ../lossyloopcd .../lossyloop [quality] [method]- quality:
1 ~ 100(default: 10) orrandom - iteration:
1 ~ 1000(default: 200) - method:
jpg(jpeg) orwebp(default: jpg)
- quality:
- Save your photo in
./input - Compose up
docker compose up -d --build

