🍺 BREW Explorer

← all formulae

caire

brew install caire v1.5.0 MIT

Content aware image resize tool

10
30-day installs · #8610
15
90-day · #10617
125
365-day · #8604
10.5k
★ GitHub stars · updated 1y ago

Build dependencies

go

GitHub topics

computer-vision content-aware-resize content-aware-scaling edge-detection face-detection golang image-processing image-resize machine-learning seam-carving

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [
    "go"
  ],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Content aware image resize tool",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:36:05+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "caire",
  "github_default_branch": "master",
  "github_last_commit_at": "2025-05-02T08:19:39Z",
  "github_readme_excerpt": "\u003ch1 align=\"center\"\u003e\u003cimg alt=\"Caire Logo\" src=\"https://user-images.githubusercontent.com/883386/51555990-a1762600-1e81-11e9-9a6a-0cd815870358.png\" height=\"180\"\u003e\u003c/h1\u003e\n\n[![build](https://github.com/esimov/caire/actions/workflows/build.yml/badge.svg)](https://github.com/esimov/caire/actions/workflows/build.yml)\n[![Go Reference](https://pkg.go.dev/badge/github.com/esimov/caire.svg)](https://pkg.go.dev/github.com/esimov/caire)\n[![license](https://img.shields.io/github/license/esimov/caire)](./LICENSE)\n[![release](https://img.shields.io/badge/release-v1.5.0-blue.svg)](https://github.com/esimov/caire/releases/tag/v1.5.0)\n[![homebrew](https://img.shields.io/badge/homebrew-v1.5.0-orange.svg)](https://formulae.brew.sh/formula/caire)\n[![caire](https://snapcraft.io/caire/badge.svg)](https://snapcraft.io/caire)\n\n**Caire** is a content aware image resize library based on *[Seam Carving for Content-Aware Image Resizing](https://inst.eecs.berkeley.edu/~cs194-26/fa16/hw/proj4-seamcarving/imret.pdf)* paper.\n\n## How does it work\n* An energy map (edge detection) is generated from the provided image.\n* The algorithm tries to find the least important parts of the image taking into account the lowest energy values.\n* Using a dynamic programming approach the algorithm will generate individual seams across the image from top to down, or from left to right (depending on the horizontal or vertical resizing) and will allocate for each seam a custom value, the least important pixels having the lowest energy cost and the most important ones having the highest cost.\n* We traverse the image from the second row to the last row and compute the cumulative minimum energy for all possible connected seams for each entry.\n* The minimum energy level is calculated by summing up the current pixel value with the lowest value of the neighboring pixels obtained from the previous row.\n* We traverse the image from top to bottom and compute the minimum energy level. For each pixel in a row we compute the energy of",
  "github_repo": "esimov/caire",
  "github_stars": 10470,
  "github_topics": [
    "computer-vision",
    "content-aware-resize",
    "content-aware-scaling",
    "edge-detection",
    "face-detection",
    "golang",
    "image-processing",
    "image-resize",
    "machine-learning",
    "seam-carving"
  ],
  "homepage": "https://github.com/esimov/caire",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 10,
  "installs_365d": 125,
  "installs_90d": 15,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "MIT",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "caire",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 8610,
  "rank_365d": 8604,
  "rank_90d": 10617,
  "raw_hash": "c41bd93c7700d202",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/c/caire.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": "HEAD",
  "version_stable": "1.5.0",
  "versioned_formulae": [],
  "why_use_this": null
}