You are here: Web API Functions > getimage > cropinside

cropinside

The cropinside method is identical to the crop method, except that whereas the crop method returns the natural level whose dimensions best match those of the requested bounding box even if the result is larger than the bounding box, the cropinside method returns the natural level closest in size to the bounding box while still fitting inside the bounding box.

Example: 400 x 400 bounding box request using cropinside method

Request:

http://demo.lizardtech.com/lizardtech/iserv/getimage?cat=Geo&item=BLM_relief.sid&wid=400&hei=400&method=cropinside

Result:

In this example, the resulting image is 227 x 160. The entire requested region is returned and the aspect ratio remains unchanged. Note that in this particular case, the result is the same as in the 300 x 300 request using the crop method.