package mosaique
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
md5=f3869c851b9cd69a7394e9015d109fcd
sha512=c2cd78a70b797f14973db12caa51222ed0f065249bb977ea2a3bd9b12fee8d6341cce85aed02bd16bd774e20ec925fdf2d2a7340497ba2f61349b6a78947759b
Description
OCaml bindings for libvips providing image loading, saving, and transformation operations
Added to opam-repository:
README
Mosaique - OCaml bindings for libvips
Mosaique provides OCaml bindings for libvips, a fast image processing library. It allows you to load, manipulate, and save images using OCaml.
Features
- Load and save images in various formats (PNG, JPEG, WebP, etc.)
- Basic image operations: resize, rotate, flip, grayscale conversion
Usage
(* Load an image *)
let img = Mosaique.load "input.jpg" in
(* Get image information *)
Printf.printf "Image: %dx%d pixels, %d bands\n"
(Mosaique.width img) (Mosaique.height img) (Mosaique.bands img);
(* Resize the image *)
let resized = Mosaique.resize img ~width:800 ~height:600 in
(* Convert to grayscale *)
let gray = Mosaique.grayscale resized in
(* Save the result *)
Mosaique.save gray Mosaique.PNG "output.png";
(* Clean shutdown *)
Mosaique.shutdown ()Contributing
This is a minimal implementation focused on core image processing operations. Contributions are welcome to expand the API coverage.
Dependencies (4)
-
dune
>= "3.20" - conf-vips
- dune-configurator
-
ocaml
>= "5.0"
Dev Dependencies (1)
-
odoc
with-doc
Optional Dependencies
None
Used by
None
Conflicts
None
Build status
Results of building mosaique with each compiler on check.ci.ocaml.org, run of against opam-repository 78c202b. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 0.0.1 (this version) | n/a | n/a | good | good | good |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure