image_quality#

file.image_quality(p0: int) int#

Sets the quality for JPEG images.

JPEG is a lossy format, i.e., it trades off file size for quality. Normally a quality factor of around 80 will produce a file that will be on order 2X smaller than one produced with a quality factor set to 100 with negligible impact on quality. JPEG format is best used with shaded images
Args:
p0:

‘quality’ 0 <= quality <= 100

p1:

‘quality’ 100 is the highest quality (no compression)

p2:

‘quality’ 0 is the lowest quality (highest compression)

Examples:
ensight.file.image_format("jpeg")
ensight.file.image_quality(80)
ensight.file.image_file("/tmp/test_image")
ensight.file.save_image()
Returns:

zero on success, non-zero on error