ImageUtil_unix
chop_extension' fname
is the same as Filename.chop_extension fname
but if fname
does not have an extension, fname
is returned instead of raising Invalid_argument
.
get_extension fname
returns the extension of the file fname
. If the file does not have an extension, Invalid_argument
is raised.
get_extension' fname
is the same as get_extension fname
but if fname
does not have an extension, the empty string is returned and no exception is raised.
val chunk_reader_of_in_channel : Stdlib.in_channel -> ImageUtil.chunk_reader
val chunk_writer_of_out_channel : Stdlib.out_channel -> ImageUtil.chunk_writer
val chunk_reader_of_path : string -> ImageUtil.chunk_reader
val chunk_writer_of_path : string -> ImageUtil.chunk_writer
Define an output channel for the builtin buffered output on Uix. see ImageChannels
for more info