diff --git a/packages/imagelib/imagelib.20180522/descr b/packages/imagelib/imagelib.20180522/descr new file mode 100644 index 00000000000..3d6b441019b --- /dev/null +++ b/packages/imagelib/imagelib.20180522/descr @@ -0,0 +1,17 @@ +The imagelib library implements image formats such as PNG and PPM + +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). diff --git a/packages/imagelib/imagelib.20180522/opam b/packages/imagelib/imagelib.20180522/opam new file mode 100644 index 00000000000..c1b8005c61a --- /dev/null +++ b/packages/imagelib/imagelib.20180522/opam @@ -0,0 +1,19 @@ +opam-version: "1.2" +available: [ ocaml-version >= "4.03.0" ] +maintainer: "Rodolphe Lepigre " +authors: "Rodolphe Lepigre " +homepage: "http://lepigre.fr" +bug-reports: "Rodolphe Lepigre " +license: "LGPL-3.0" +dev-repo: "git://github.com:rlepigre/ocaml-imagelib.git" +build: [make] +install: [make "install"] +remove: [make "uninstall"] +depends: [ + "ocamlfind" {build} + "ocamlbuild" {build} + "decompress" {>= "0.7"} +] +post-messages: [ + "imagelib requires convert (imagemagick) to handle format other than png and ppm." +] diff --git a/packages/imagelib/imagelib.20180522/url b/packages/imagelib/imagelib.20180522/url new file mode 100644 index 00000000000..18c93dc6beb --- /dev/null +++ b/packages/imagelib/imagelib.20180522/url @@ -0,0 +1,2 @@ +archive: "https://github.com/rlepigre/ocaml-imagelib/archive/ocaml-imagelib_20180522.tar.gz" +checksum: "d5cf13df81f189c1f7cddaebfe524d73"