Next: , Previous: , Up: Internal Routines   [Contents][Index]


15.5.340 jpegwrite

jpegwrite, var, file [, header, quality]

jpegwrite(var, file [, header, quality])

[jpeg] Writes 2D byte array var and string header to 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 higher quality is, the larger the file size and the less information is lost in the compression. You may omit header or 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