Parameter Reference
Quick reference for all available parameters:| Parameter | Full Name | Description |
|---|---|---|
w | width | Image width in pixels |
h | height | Image height in pixels |
c | crop | Crop mode for resizing |
ar | aspect ratio | Aspect ratio (format: W:H) |
a | angle | Rotation angle in degrees |
g | gravity | Focal point for cropping |
b | background | Background color |
q | quality | Compression quality (1-100) |
f | format | Output format (avif, webp, jpeg, png) |
Core Parameters
Set the width of the image in pixels.Examples:
w_800- Set width to 800 pixelsw_1920- Set width to Full HDw_400- Set width to 400 pixels
Set the height of the image in pixels.Examples:
h_600- Set height to 600 pixelsh_1080- Set height to Full HDh_400- Set height to 400 pixels
Define how the image is cropped during resizing.Available modes:
fill- Fill entire area, cropping if necessary (default)fit- Fit within dimensions while preserving aspect ratioscale- Stretch to exact dimensions, ignoring aspect ratiocrop- Resize and crop to exact dimensionspad- Fit and add borders with background color
Apply a specific aspect ratio by cropping the image. Format:
W:H.Common ratios:ar_16:9- Widescreen video formatar_1:1- Square format (Instagram)ar_4:3- Classic photo format
Rotate the image by specified degrees or automatically using data.Values:
auto- Automatic rotation based on EXIF orientation0-360- Rotation angle in degrees
Define the focal point for cropping operations.Available positions:
center- Center of the image (default)north- Top edgesouth- Bottom edgeeast- Right edgewest- Left edgeface- AI-powered face detectionauto- Automatic detection of region of interest using entropy analysis
Set background color for rotation or pad crop mode.Format:
b_rgb:ffffff- Hexadecimal color without#(e.g.,b_rgb:fffffffor white,b_rgb:ff0000for red)
Control compression quality level. Range: 1-100.Recommendations:
90-100- High quality, larger file size80-89- Optimal balance (recommended)60-79- Higher compression, smaller files1-59- Maximum compression, visible artifacts
Force a specific output format.Available formats:
avif- Modern format, best compression (up to 50% smaller)webp- Modern format, excellent compatibilityjpeg/jpg- Universal standard formatpng- Lossless, supports transparency
Basic Examples
- Basic Resize
- Smart Cropping
- Aspect Ratio
- Format Conversion
Advanced Examples
Instagram-optimized portrait
Instagram-optimized portrait
Responsive thumbnail with padding
Responsive thumbnail with padding
Rotated logo with transparency
Rotated logo with transparency
Web-optimized landscape photo
Web-optimized landscape photo
Supported Image Formats
- Input Formats
- Output Formats
The system accepts the following image formats as input:
- JPEG / JPG - Standard photo format
- PNG - With full transparency support
- WebP - Modern web format
- AVIF - Next-generation format
- GIF - First frame only (static output)
Best Practices
Optimize for web
Use
q_85 with automatic format selection for the best balance of quality and file size.Leverage face detection
Apply
g_face for portraits and profile images to ensure faces remain in frame after cropping.Batch similar sizes
Standardize image dimensions across your application to maximize cache efficiency.
Use modern formats
Specify
f_avif or f_webp for significant file size reductions on modern browsers.