Path to the file where to write the image data. See Output as a file for supported formats.
quality
int
The quality of the image. Optional parameter. Only when the extension on path is jpg or jpeg, this parameter works. The valid range is (0, 100), and the default is 100.