WebImage webJPEG(Image img, [Pair<String, String> ] extraheaders, Int qual=-1)
Arguments
img: The imageextraheaders: Any additional HTTP headers to send with the imagequal: The image quality (0..95). Alternatively, any negative number will use the default output quality.
Usage
Returns a JPEG image suitable for returning from a webapp's webmain function.