Effects & Adjustments
This page documents all operations for applying visual effects, transformations, and spacing to images.
Blur
bl:%sigmaApplies a Gaussian blur to the image. Higher sigma values produce a stronger blur effect.
sigma
float
disabled
Any positive float
Examples:
# Light blur
bl:3
# Strong blur (good for background overlays)
bl:15
# Subtle blur
bl:1.5Rewrite rule example — blurred hero backgrounds:
Regex: ^/hero-bg/(.*) Target: /_sx/img/_/rs:fill:1920:600/bl:15/q:70/plain/$1
A request to /hero-bg/media/banner.jpg delivers a 1920×600 blurred version of the image, perfect for placing text over.
Sharpen
Applies a sharpening filter to the image. Use this to enhance image detail, especially after resizing.
sigma
float
disabled
Any positive float
As an approximate guideline:
0.5
Screen display (~4 pixels/mm)
1.0
Print at 12 pixels/mm
1.5
Print at 300 DPI (16 pixels/mm)
Examples:
Pixelate
Applies a pixelation filter to the image. The size parameter defines the size of each pixel block in the output.
size
integer
disabled
Any positive integer
Examples:
Rewrite rule example — pixelated preview images:
Regex: ^/preview/(.*) Target: /_sx/img/_/rs:fit:400:400/pix:10/q:60/plain/$1
Rotate
Rotates the image clockwise by the specified angle. Only 90-degree increments are supported. The EXIF orientation is applied before rotation unless auto-rotation is disabled.
angle
integer
0
0, 90, 180, 270 (multiples of 90)
Examples:
Auto Rotate
Controls automatic rotation based on EXIF Orientation metadata. When enabled, smoxy reads the orientation tag from the image metadata and rotates the image accordingly. The orientation tag is always removed from the output regardless of this setting.
auto_rotate
boolean
true
1, t, true to enable; 0, f, false to disable
Example:
Background
Sets the background color used when converting images with transparency (e.g., PNG to JPEG), for padding, and for extend operations.
R
integer
—
0–255
G
integer
—
0–255
B
integer
—
0–255
hex_color
string
—
Any valid hex color (e.g., ff0000, ffffff)
With no arguments, background manipulation is disabled.
Examples:
Rewrite rule example — PNG to JPEG with white background:
Regex: ^/jpg/(.*\.png) Target: /_sx/img/_/bg:ffffff/f:jpg/q:85/plain/$1
Padding
Adds padding around the image, filled with the background color. Uses CSS-style shorthand. Padding is applied after all other transformations (except watermarking) and increases the final image dimensions.
top
integer
0
Any non-negative integer (pixels)
right
integer
0
Any non-negative integer (pixels)
bottom
integer
0
Any non-negative integer (pixels)
left
integer
0
Any non-negative integer (pixels)
Shorthand behavior
pd:10
10px on all sides
pd:10:20
10px top/bottom, 20px left/right
pd:10:20:30
10px top, 20px left/right, 30px bottom
pd:10:20:30:40
10px top, 20px right, 30px bottom, 40px left
Note: Padding enlarges the final image beyond the requested dimensions. If you resize to 100×200 and apply pd:10, the result will be 120×220 pixels.
Note: Padding values are affected by the DPR setting and will be scaled accordingly.
Examples:
Rewrite rule example — product images with consistent padding:
Regex: ^/product/(\d+)x(\d+)/(.*) Target: /_sx/img/_/rs:fit:$1:$2/bg:ffffff/pd:10/q:85/plain/$3
This ensures all product images have the same dimensions with a white border, which is useful for grid layouts.
Last updated
Was this helpful?