GET api/v1/images/{image_id}/crop?use_percent={use_percent}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
image_id

globally unique identifier

Required

use_percent

boolean

None.

Body Parameters

None.

Response Information

Resource Description

ImageCrop
NameDescriptionTypeAdditional information
x

decimal number

None.

y

decimal number

None.

width

decimal number

None.

height

decimal number

None.

use_percent

boolean

None.

aspect_ratio

string

None.

background

string

None.

Response Formats

application/json, text/json

Sample:
{
  "x": 1.0,
  "y": 1.0,
  "width": 1.0,
  "height": 1.0,
  "use_percent": true,
  "aspect_ratio": "sample string 1",
  "background": "sample string 2"
}

application/xml, text/xml

Sample:
<ImageCrop xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IO.Swagger.Models">
  <aspect_ratio>sample string 1</aspect_ratio>
  <background>sample string 2</background>
  <height>1</height>
  <use_percent>true</use_percent>
  <width>1</width>
  <x>1</x>
  <y>1</y>
</ImageCrop>