-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
opam
41 lines (39 loc) · 1.53 KB
/
opam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
opam-version: "2.0"
maintainer: "Rodolphe Lepigre <rodolphe.lepigre@inria.fr>"
authors: "Rodolphe Lepigre <rodolphe.lepigre@inria.fr>"
homepage: "http://lepigre.fr"
bug-reports: "Rodolphe Lepigre <rodolphe.lepigre@inria.fr>"
license: "LGPL-3.0-only"
dev-repo: "git+https://github.com:rlepigre/ocaml-imagelib.git"
build: [make]
install: [make "install"]
remove: [make "uninstall"]
depends: [
"ocaml" {>= "4.03.0" & < "5.0"}
"ocamlfind" {build}
"ocamlbuild" {build}
"decompress" {= "0.7"}
]
post-messages: [
"imagelib requires convert (imagemagick) to handle format other than png and ppm."
]
synopsis: "The imagelib library implements image formats such as PNG and PPM"
description: """
The imagelib library implements image formats such as PNG and PPM in
OCaml, relying on only one external dependency: 'decompress'.
Supported image formats:
- PNG (full implementation of RFC 2083),
- PPM, PGM, PBM, ... (fully supported),
- JPG (only image size natively, conversion to PNG otherwise),
- GIF (only image size natively, conversion to PNG otherwise),
- XCF (only image size natively, conversion to PNG otherwise),
- Other formats rely on 'convert' (imagemagick).
As imagelib only requires 'decompress', it can be used together with
js_of_ocaml to compile projects to Javascript. Note that some of the
features of imagelib require the convert binary (and thus cannot be
used from Javascript)."""
url {
src:
"https://github.com/rlepigre/ocaml-imagelib/archive/ocaml-imagelib_20171028.tar.gz"
checksum: "md5=91543d08fd800798ff66341b00e94336"
}