DFIELDSOLUTIONS

Free software

LabCarven: Resize an image by what matters

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.

Free software1 sections · 2 min readBy Dezső Mező.mdFree softwareCarven

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.

01About the app

Image processing + dynamic programming

What to take away

  • 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.
  • Download: Carven (ZIP)
We build this for clientsFull-stack

Read the full write-up

More from the lab

Browse all entries

Want this looked at on your own system?Start a conversation

5.0
“New shop, more orders in the first week.”Müller Márk · GeekCornerManaging Director · Hungary