• Document Up to Date

Crop Image

Crop image.

Resource Information

This service uses the tomcat application on port 8080 by default. To see a list of default ports click here

The context for this API is /studio, please prefix the API URLs with this context.

HTTP Verb
GET
URL
/api/1/services/api/1/content/crop-image.json
Response Formats
JSON
Required Role
N/A

Parameters

Name
Type
Required
Description
site_id
String
Site to use
path
String
Path of the content
newname
String
New name for image
t
Integer
Top value
l
Integer
Left value
w
Integer
Width value
h
Integer
Height value

Example

Request

GET .../api/1/services/api/1/content/get-content.json?site_id=mysite&path=/static-assets/images/image1.png&newname=cropped.png&t=10&l=10&w=10&h=10

Response

Status 200 OK

{ "success":true }

Responses

Status
Location
Response Body
200

See example above.