Skip to content

Image API Reference

This page is generated from the same API catalog used by the Skymage processing service.

Request URLs

Public origin:

text
https://{handle}.skymage.net/v1/{origin-host}/{path}?{parameters}

Configured external storage:

text
https://{handle}.skymage.net/v1/ex/{storage-handle}/{path}?{parameters}

Sizing

ParameterDescriptionType and limitsExample
wResize the image to this width in pixels.integer: 1 to 10000w=800
hResize the image to this height in pixels.integer: 1 to 10000h=600
dprMultiply the requested dimensions for high-density displays.number: 0.1 to 8dpr=2
fitControl how the image fits the requested width and height.string: clip, cover, contain, fill, scale-down, crop, insidefit=clip

Output

ParameterDescriptionType and limitsExample
qOutput quality for JPEG, WebP, and AVIF.integer: 1 to 100q=82
fConvert the result to a supported output format.string: auto, jpg, jpeg, png, webp, aviff=auto

Crop

ParameterDescriptionType and limitsExample
cropCrop width,height,x,y after resizing.stringcrop=500,300,0,100
pChoose a preset, smart crop, or crop-X-Y focal point used by cover or crop.string: top-left, top, top-right, left, center, right, bottom-left, bottom, bottom-right, entropy, attention, crop-X-Yp=center
trimTrim a uniform border using this sensitivity.integer: 1 to 254trim=10

Orientation

ParameterDescriptionType and limitsExample
orRotate clockwise by a multiple of 90 degrees.integer: 0, 90, 180, 270or=0
flipFlip horizontally, vertically, or in both directions.string: h, v, hvflip=h

Effects

ParameterDescriptionType and limitsExample
blurApply Gaussian blur using this sigma value.number: 0.3 to 1000blur=5
sharpSharpen the image using an intensity from 0 to 10.number: 0 to 10sharp=4
briAdjust brightness from -100 to 100.integer: -100 to 100bri=15
conAdjust contrast from -100 to 100.integer: -100 to 100con=15
gamApply gamma correction from 1.0 to 3.0.number: 1 to 3gam=2.2
filterApply a color filter.string: grayscale, sepia, negatefilter=grayscale

Composition

ParameterDescriptionType and limitsExample
bgFlatten transparency against a CSS color, hex color, or transparent.stringbg=ffffff
tPlace the transformed image on a transparent canvas.string: letterboxt=letterbox
shapeMask the image to a supported shape.string: circle, ellipse, hexagon, pentagon, pentagon-180, square, star, heart, triangle, triangle-180shape=circle
strimTrim transparent pixels around non-ellipse shape masks.booleanstrim=true
watermarkAdd a text watermark to the bottom-right corner.stringwatermark=example.com

Examples

text
https://demo.skymage.net/v1/daudau.cc/images/crab.png?w=800&f=webp&q=82
https://demo.skymage.net/v1/daudau.cc/images/crab.png?w=480&h=480&fit=cover&f=avif&q=80
https://demo.skymage.net/v1/daudau.cc/images/crab.png?w=700&h=500&fit=crop&p=attention