Images

Get Image

Returns a list of Assets available for the Account that is identified by the given security token.

Parameters:

   
HTTP Method GET
URI /images/{imageId}/raw
Content-Type  
Normal Response 200 OK
Mode Synchronous
Authenticated No

Matrix Parameters:

Name Required Type Description
width No Numeric The expected image width where width >= 1
height No Numeric The expected image height where height >= 1
width-scale No Float Scaling factor to be applied to the width of the image where widthscale > 0
height-scale No Float Scaling factor to be applied to the height of the image where heightscale > 0
resize-mode No Enum One of the modes specified in the following below. Distort is the default mode.
image-format No Enum One of: JPG, PNG

The following resize modes are supported:

Mode Behaviour
distort Use specified target width and target height and distort image if required
crop Use specified target width and target height and crop image if required to maintain source aspect ratio - crops equally from centre point.
scale Ignore specified target width and target height and scale source image width by specified scale x and source image height by specified scale y
fixed-width Ignore target height, use target width and scale source image height to maintain source aspect ratio.
fixed-height Ignore target width, use target height and scale source image width to maintain source aspect ratio.

Response:

Returns the resized or scaled image data in the requested format. If no format is specified, the data will be returned in the original format as saved on disk.

Was this article helpful?