Images
To transform an image, you need to make a request with parameters. The service will create a new file, return it in response to the request, and save it to your storage.
For subsequent requests with the same parameters, the already created file will be returned.
Example:
// create a new image with a width of 100px while maintaining the aspect ratiohttps://api.defaultuploader.com/v1/image/upload/token/sample.jpg?w=100
width
alias: wCreates an image with the specified width while maintaining the correct aspect ratio.
min 0, max 5000
height
alias: hCreates an image with the specified height while maintaining the correct aspect ratio.
min 0, max 5000
format
alias: fChanges the image format.
Supported formatsJPEG, PNG, WebP, AVIF, TIFF, GIF, SVG, HEIC
auto
Coming soonAutomatic detection of modern image format support by the browser.
quality
alias: qmin 0, max 100, default value = 75
Change the image quality.
dpr
1, 2 — default 1
Supports high-resolution screens, doubling the image size.
animated
alias: aanimated=0
Disable animation for GIF or WebP.
fit
How the image should be resized/cropped to fit the target size(s).
cover, contain, fill, inside, outside
func
Smart crop. Uses AI to find the “interesting” part of the image or a face and centers it in the crop.
face, auto
zoom
alias: zOptional parameter for “smart” cropping. Adjusts the margins.
min 0.1, max 10.1 - is 10% of the image's side
blur
Creates a blurred image
min 0.3, max 1000
negate
Creates a “negative” image
?negate
normalize_lower
Enhances the contrast of the output image by stretching its brightness to cover the full dynamic range
min 1, max 99
normalize_upper
Enhances the contrast of the output image by stretching its brightness to cover the full dynamic range
min 1, max 99
saturation
Sets the image saturation
min 0.1
brightness
Sets the image brightness
min 0.1
hue
Sets the image hue
min 1
lightness
Sets the image lightness
min 0.1
greyscale
Converts the image to black and white
?greyscale
radius
Rounds the corners of the image
min 0 max 100
To create a circular image, set equal dimensions.
remove_background
alias: rm_bgRemoves the background from the image
?rm_bg
super_resolution coming soon
Uses AI to upscale the image resolution.