Image.write#
- Image.write(filename: str | Path, dtype: DTypeLike = 'uint8', **kwargs: Any) bool[source]#
Write image to file
- Parameters:
Write image data to a file. The file format is taken from the extension of the filename.
Examples
>>> from machinevisiontoolbox import Image >>> img = Image.Read('flowers1.png') >>> img.write('flowers.jpg') True
See also
iwritecv2.imwrite