Module Image.Transform
type conf
=
{
quality : int;
rename : string -> string;
files : Fpath.t list;
dst : Fpath.t;
}
A configuration for transformations
val transform : conf:conf -> (t -> t) list -> unit
transform ~conf transforms
will load all of the images inconf.files
and it will then apply the list oftransforms
to the images before placing the output files indir
. Therename
option lets you specify a function that renames the image, thequality
option let's you specify the jpeg quality defaulting to60