-
Notifications
You must be signed in to change notification settings - Fork 12
63 ImageIO
This package is avaialable as require("aprilann.ImageIO")
.
ImageIO package implement functions for read/write of images in any supported format. Currently PNG and TIFF formats are supported.
This function allows to read an image from a given filename
. It returns an
instance of Image
class. The img_format
is optional, if not given, it
will be extracted from the extension of the given filename
. If given, it must
be a string like png
, tiff
or tif
. More formats will be supported in the
future.
This function allows to write an image into a given filename
. The img_format
is optional, if not given, it will be extracted from the extension of the
given filename
. If given, it must be a string like png
, tiff
or
tif
. More formats will be supported in the future.