No operations found matching "{hs-filter:term}"
Reference Images API images.get

images.get

Retrieves an image along with any associated transforms. Supports real-time image processing via query parameters - transformations are applied on-the-fly and the result is returned as binary image data.
Operation
images.get
Method
GET
Authentication
Public
Request Schemas
None
Response Schemas
None

Try this endpoint

Send a request to this endpoint using your own API credentials.

Try this endpoint

Path Parameters

Parameter Type Required Description organizationId string Yes The unique identifier for the organization that owns the image. imageId string Yes The unique identifier for the specific image resource.

Query Parameters

background

string Optional
Specifies the background color for the canvas when using some `fit` strategies, `pad`, or a `rotate` not divisible by 90. Supports any color value parseable by the npm [Color](^https://www.npmjs.com/package/color) package - including hex, RGB, and CSS color names. Alias: `bg`
Examples
?background=#663399
Hex
?background=rgb( 102, 51, 153 )
RGB
?background=hsl( 270 50% 40% )
HSL
?background=rebeccapurple
CSS Color Name

blur

integer Optional
Controls the radius of a Gaussian blur to apply to the image.
Default
2
Range
1 – 10
Examples
3
A little blur
10
Maximum blur

crop

string Optional
Extracts a region from the image. Requires coordinates and dimensions provided in a comma-delimited string. The first two numbers are the `left` and `top` positions, and the last two numbers are the `width` and `height` of the extracted bounding box. If the dimensions are omitted, the crop will proceed to the bottom right corner of the image. Often used with `position` to determine the anchor point.
Examples
?crop=100,100
Crop 100 in from the top left corner, to the bottom right corner
?crop=150,64,250,200
Crop 150px in from the left, 64px down from the top. From there, extend to the right 250px in width and down 200px in height.

fit

string Optional
Specifies the strategy for fitting the image into the dimensions.
Options
contain cover fill inside outside stretch

format

string Optional
Specifies the desired output file format for the transformed image. If omitted, the native image format is used.
Options
gif jpeg png webp

grayscale

boolean Optional
converts the image output to a monochromatic format

height

integer Optional
The desired height, in pixels, for the output image. If `width` is not specified, aspect ratio is preserved.
Range
1 – 4096

lighten

integer Optional
Increases the brightness of the image.
Range
1 – 100

mirror

string Optional
Flips the image across an axis. Valid values: x (horizontal), y (vertical), or both.
Options
x y both
Examples
x
Flip the image on the X axis
both
Flip the image on both axes

negative

boolean Optional
Products a "negative" of the image by inverting all pixel colors.

normalize

number Optional
Enhances the image contrast by stretching the luminance to the full dynamic range

pad

string Optional
Adds padding around the image. Accepts either a single value, or 4 directional values for top, right, bottom and left - in that order. This non-image canvas will default to `transparent` in a `png`, and `black` in all other formats. This color can also be explicitly set by providing a `background` color parameter.

position

string Optional
Determines the alignment of the image when the fit strategy results in either empty space or overflow.
Options
top-left top top-right left center right bottom-left bottom bottom-right
Examples
top-right
Align the image to the top right corner.

progressive

boolean Optional
For jpeg and png formats, enables progressive scan/interlacing for "low-to-high" resolution loading on slow connections.

quality

integer Optional
The compression quality to apply to JPEGs or WebP images.
Range
1 – 100

rotate

integer Optional
Rotates the image by the specified number of degrees. Positive values perform a clockwise rotation, and negative values perform a counter-clockwise rotation.
Range
-359 – 359

shade

integer Optional
Decreases the brightness of the image.
Range
1 – 100

sharpen

integer Optional
Controls the intensity of the sharpening filter to apply.
Default
2
Range
1 – 10

tint

string Optional
Overlays the image with a specified color wash. Supports any color value parseable by the npm [Color](^https://www.npmjs.com/package/color) package - including hex, RGB, and CSS color names.

trim

boolean Optional
Automatically crops out similar colored edge pixels around an image. By default, samples from the top left pixel of an image for comparison.

width

integer Optional
The desired width, in pixels, for the output image. If `height` is not specified, aspect ratio is preserved.
Range
1 – 4096

Request Headers

There are no request headers for this operation.

Request Body

There is no request body for this operation.

Response · Success

Response · Error

Headers

Responses

200 OK
400 Invalid transformation parameters
404 Image not found