DField SolutionsMérnöki stúdió · Budapest
Loading · Töltődik
Skip to content
Category: Image processing + dynamic programming

Carven

Resize an image by what matters.

What it is

Carven is a content-aware image resizer that implements seam carving from scratch. It builds a gradient-energy map, runs a minimum-seam dynamic program to find the least-important path of pixels, and removes it - all as pure number-grid math kept separate from rendering and tested directly. It shows content-aware and naive scaling side by side, and it is a from-scratch, dependency-light build you can download and run locally.

From-scratch seam carving: a gradient-energy map + a min-seam dynamic program + pixel removal, all pure number-grid math (7 tests). Side-by-side content-aware vs naive scale.

What's inside

The full source, the tests, and CI. Open it, read it, change it. A zero-dependency core, free, in the MIT spirit.

Run it after unzip

pnpm install && pnpm dev