AI MediaBoost image editing: what it does and how to use it
With the AI MediaBoost image editing feature, you optimize each image directly in the delivery URL: crop, resize, adjust brightness and format without creating and storing variants in advance. The engine generates the requested version on the fly and automatically caches it for subsequent requests.
The order of operations is always fixed, regardless of how you write parameters in the URL:
Crop: cropping the original image
Resize: resizing the resulting image
Modify: visual adjustments without altering pixel dimensions
Resize the image
Use resize parameters to define output image dimensions. The original aspect ratio is always preserved: if you specify both width and height with different proportions from the original, the more restrictive measurement is applied and the other is ignored.
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
int |
original width |
Desired width in pixels. |
|
int |
original height |
Desired height in pixels. |
|
boolean |
none |
Allows enlargement beyond original dimensions. Requires both |
|
int |
none |
Device Pixel Ratio. Values: |
Examples:
w=320: width 320px, proportional heightw=300&h=300: on a 16:9 image the result is 300×169px (the more restrictive dimension wins)dpr=2&h=216: height 216px at double density for Retina screenszoom=true&w=2500&h=2000: enlargement beyond original dimensions (both dimensions required)
Recommended configuration for Retina screens
Use dpr=2 along with w or h. Example: dpr=2&h=216 returns a high-density image without manually doubling dimensions.
Crop the image
Manual cropping allows you to precisely select the image area to preserve. The coordinate system origin is (0,0) in the top-left corner, with the x-axis extending to the right and the y-axis extending downwards. The resulting image aspect ratio may differ from the original depending on the chosen values.
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
int |
0 |
Position of the left edge of the crop area (distance from origin on the x-axis). |
|
int |
0 |
Position of the top edge of the crop area (distance from origin on the y-axis). |
|
int |
width − cx |
Width of the crop area starting from (cx, cy). |
|
int |
height − cy |
Height of the crop area starting from (cx, cy). |
Example: cx=384&cw=1056&cy=54&ch=940, crop from corner (384, 54) with a 1056×940px area.
Absolute pixel values only. Crop parameters do not accept percentage values.
Automatic crop
The crop parameter combines cropping and resizing automatically, eliminating the need to calculate coordinates manually. It ignores all manual crop parameters (cx, cy, cw, ch): do not combine them in the same URL.
Mode |
How it works |
Ideal for |
|---|---|---|
|
Crops to the center to obtain exactly the dimensions requested with |
Uniform thumbnails, editorial grids. |
|
Analyzes the image and identifies the subject's center of gravity. If you specify both |
Editorial images, banners, portraits. |
|
Detects and removes borders with solid color (e.g. white background). If you specify |
Product photos on uniform backgrounds, e-commerce. |
Recommended configuration for product images (e-commerce)crop=product&w=600&h=600 automatically removes white borders and returns a ready-to-use square image. Add fillColor=#FFFFFF to enforce white as the fill color (only on images already without background).
Recommended configuration for editorial bannerscrop=auto&w=1200&h=630 automatically centers the subject into standard social and banner dimensions, without manual cropping.
Modify image appearance
Modify operations alter visual appearance without changing pixel dimensions. They are always applied after crop and resize.
Quality and format
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
int |
none |
Compression quality for JPEG and WebP (range: 5-95). Ignored for PNG. |
|
string |
none |
Automatically optimized quality. Values: |
|
string |
avif |
Output format. THRON automatically selects the best format for the browser; use this parameter only if you have specific requirements and want to choose a specific format. |
Recommended configuration for web delivery
Use q_auto=medium: reduces image weight while maintaining good visual quality. The format is already managed automatically by THRON (default: AVIF).
Visual adjustments
All parameters have a range of −100 / +100, default 0 (no effect). Exception: blur, range 0-100.
Parameter |
Description |
|---|---|
|
Image brightness (-100, 100) |
|
Image contrast (-100, 100) |
|
Image sharpness (-100, 100) |
|
Color saturation (-100, 100) |
|
Blur (0-100) |
Example: brightness=-20&contrast=20&sharpness=30, reduced brightness, increased contrast and sharpness.
Transparency fill
Parameter |
Type |
Description |
|---|---|---|
|
string (HEX) |
Color in HEX format (e.g. |
## Additional articles
- Guide to Creating and Configuring a Custom Application
- The pKey: What it is and how to manage itNeed help?
For technical issues, contact support@thron.com.