std::compression::qoi

write

fn usz? write(String filename, char[] input, QOIDesc* desc)
Encode raw RGB or RGBA pixels into a QOI image and write it to the
file system.

The desc struct must be filled with the image width, height, the
used channels (QOIChannels.RGB or RGBA) and the colorspace
(QOIColorspace.SRGB or LINEAR).

The function returns an optional, which can either be a QOIError
or the number of bytes written on success.

Parameters