Comprehensive test cases for imagor image processing server
unsafe mode is on for testing.
Left: The actual source image. Right: Same image served through imagor without processing. All examples below apply various transformations.
Resize to 300px width, auto height maintaining aspect ratio
Resize to 200x200px with smart cropping
Resize without cropping, fit within 200x200px bounds
Resize to exact dimensions without maintaining aspect ratio
Uses largest dimension for better quality
Crop from the top of the image
Crop from the right side
Automatic focal point detection
Apply Gaussian blur (sigma=5)
Enhance image sharpness (amount=2)
Increase brightness by 30
Increase contrast by 20
Increase color saturation by 30
Convert to black and white
Chain multiple filters together
Enhance sharpness and color vibrancy
Apply rounded corners with 20px radius
Convert to modern WebP format
Convert to PNG format
JPEG format with 60% quality compression
Add background color when using fit-in mode
Rotate color hue by 90 degrees
Fill with custom color and round corners
Crop from point (100,100) to (800,600) using AxB:CxD syntax
Crop using percentages: from 10% to 90% on both axes
Apply crop filter after resizing (10,10,280,280)
Rotate image 90 degrees clockwise
Flip horizontally using negative width (-300x0)
Flip horizontally and vertically (-300x-200)
Add text at center with size 40, white color
Position label at bottom-right corner
Place text at specific pixel position (20,20)
Scale image to 50% of original dimensions
Prevent upscaling beyond original size (fit-in 2000x2000)
Enable upscaling in fit-in mode
Auto-compress to fit under 50KB
JPEG with 30% quality
JPEG with 95% quality
Round corners + blur edges + brightness
Saturation down, sepia tone, add grain effect