package imagelib
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=e8be5acf0fe38d840331fe505db090b3b2e36089d012530ec9353e79d8ab4870
sha512=d5386b5d6036293f53f5910553fb2f6898f5c7d72fde67eec1e953ac5846c6b05b061074ec237741e89cea3653fb88f4a1a0554ebb57b402a0a396882c5545ff
doc/imagelib.unix/ImageLib_unix/index.html
Module ImageLib_unixSource
This module provides an easy-to-use interface for imagelib. In most cases, you'd want to use these functions rather than those in imagelib.
writefile fn img writes the image img to the file fn. This function guesses the desired format using the extension. Raises Corrupted_image if it encounters a problem. If the file extension is unknown to imagelib, this will first write out a png and then convert that to the desired format using the "convert" command from imagemagick.
size fn reads the image from the file fn. It returns the pixel dimensions of the image as the tuple width, heigth.
openfile fn reads the image from the file fn. This function guesses the file format using the extension. Raises Corrupted_image if it encounters a problem. If the file extension is unknown to imagelib, this will attempt to convert to png using imagemagick and then read in the png file.