Image.saveAsJpeg

Save the image as jpeg.

class Image
void
saveAsJpeg
(
string path
,
int quality = 75
,
bool progressive = false
,,
bool optimize = false
,
bool baseline = false
)

Parameters

path string

where the image is saved

quality int

save quality(%)

progressive bool

save as a progressive JPEG file

subsampling JpegSaveSubsamplingOption

for SubSampling4ab, save with 4:a:b

optimize bool

On saving, compute optimal Huffman coding tables (can reduce a few percent of file size)

baseline bool

Save basic JPEG, without metadata or any markers

Meta