Table of contents

ImageScaleSetting

Parameter ImageScaleSetting is for controlling how to up or down scale the image.

"ImageScaleSetting":
{
    "ScaleType": "ST_SCALE_DOWN",
    "ReferenceEdge": "RE_SHORTER_EDGE",
    "EdgeLengthThreshold": 2300
}

ScaleType

Specifies whether to scale up or down the image.

ScaleType Parameter Details
Type
String
Value range
“ST_SCALE_DOWN”, “ST_SCALE_UP”
Default Value
“ST_SCALE_DOWN”

ReferenceEdge

Specifies which edge (longer edge or shorter edge) to use when scaling the image.

ReferenceEdge Parameter Details
Type
String
Value range
“RE_SHORTER_EDGE”, “RE_LONGER_EDGE”
Default Value
“RE_SHORTER_EDGE”

EdgeLengthThreshold

Specifies the threshold for scaling the image.

  • If the ScaleType is set to “ST_SCALE_DOWN”, the image will be continuously scaled down until the ReferenceEdge is shorter than the EdgeLengthThreshold.
  • If the ScaleType is set to “ST_SCALE_UP”, the image will be continuously scaled up until the ReferenceEdge is longer than the EdgeLengthThreshold.
EdgeLengthThreshold Parameter Details
Type
int
Value range
[512, 0x7fffffff]
Default Value
2300

Is this page helpful?

YesYes NoNo

In this article: