jpegwrite, var, file [, header, quality]
jpegwrite(var, file [, header, quality])
[jpeg] Writes 2D
var and string
file in jpeg-compressed format with
compression quality parameter
quality, which must range
between 0 and 100 and defaults to 75. jpeg compression discards part of
the resolution, and can reach high degrees of compression that way. The
quality is, the larger the file size and the less
information is lost in the compression. You may omit
quality or both.
The function form returns
1 on success, and
0 on failure.
LUX uses version 6b of the Independent jpeg Group’s jpeg library to implement this routine.
See also: jpegread, fcwrite, fzwrite, gifwrite