API • Introduction
Our rendering API is a querystring-based API. The querystring lies at the center of OMGIMG's capabilities.
By adding the below parameters to your querystring, you can resize, crop, and further enhance your images on the fly. This means that you don't need to pre-thumbnail any of your images in your library.
You can even be quite dynamic about the sizes of your images based on the current viewport or screen size, and render an image at the perfect size depending on your device.
Below are the parameters that are part of our API.
Size
w
image width
image width
h
image height
image height
fit
resize fit mode
resize fit mode
crop
crop mode
crop mode
Adjustment
bri
brightness
brightness
Format
fm
format
format
q
output quality
output quality
orig
return original image
return original image
lossless
lossless compression
lossless compression
Stylize
grey
greyscale
greyscale
pg
PDF page number
PDF page number