Jpeg Size in KiloBytes. Specifies the maximum size of the JPEG response in kilobytes.

jpegSize= *size*


Size in kilobytes.

If this is set to a positive value, and if the JPEG response with the specified JPEG quality does not exceed this value, that image is returned as the response. Otherwise, the JPEG quality decreases until it either produces an image which fits in to the specified size or until it determines it cannot fit. In the latter case, the request fails with an error.

A value of 0 means that the response is not constrained by size.

Negative values are not allowed.


Request attribute. Applies regardless of current layer setting. Ignored if the output image format is not JPEG.




Guarantee size is not too large for delivering to a device with limited memory:


See also

fmt= , attribute::JpegQuality

On this page