Skip to content

Transformation Parameters ​

Icefiery provides a powerful set of URL-based parameters for transforming images on-the-fly. These transformations are applied instantly and cached at the edge for optimal performance.

Basic Parameters ​

Dimensions ​

ParameterDescriptionExample
widthSet width in pixels?width=400
heightSet height in pixels?height=300
min_widthSet minimum width in pixels?min_width=200
max_widthSet maximum width in pixels?max_width=800
min_heightSet minimum height in pixels?min_height=150
max_heightSet maximum height in pixels?max_height=600
resizeResize mode: cover, contain, fill?resize=cover

Constraints:

  • Maximum dimensions: 25 megapixels (e.g., 5000 x 5000)
  • Minimum dimensions: 1 x 1 pixel

Quality and Format ​

ParameterDescriptionExample
qualityImage quality (20-100)?quality=85
FormatChange via file extension.webp, .png

Resize Modes ​

Cover (Default) ​

Fills the entire target dimensions while maintaining aspect ratio. May crop parts of the image.

https://cdn.icefiery.com/res/img_abc123.jpg?width=400&height=300&resize=cover

Contain ​

Fits the entire image within the target dimensions while maintaining aspect ratio. May leave empty space.

https://cdn.icefiery.com/res/img_abc123.jpg?width=400&height=300&resize=contain

Fill ​

Stretches the image to fill the target dimensions exactly, ignoring aspect ratio.

https://cdn.icefiery.com/res/img_abc123.jpg?width=400&height=300&resize=fill

Format Conversion ​

Convert images to different formats by changing the file extension:

FormatExtensionUse Case
JPEG.jpg, .jpegPhotos, complex images
PNG.pngGraphics, transparency
WebP.webpModern browsers, better compression

Example:

# Original JPEG
https://cdn.icefiery.com/res/img_abc123.jpg

# Convert to WebP
https://cdn.icefiery.com/res/img_abc123.webp

# Convert to PNG
https://cdn.icefiery.com/res/img_abc123.png

Quality Control ​

The quality parameter controls the compression level and file size:

  • Higher values (80-100): Better quality, larger files
  • Lower values (20-40): Smaller files, visible compression
  • Default: 85 (good balance of quality and size)

Example:

# High quality
https://cdn.icefiery.com/res/img_abc123.jpg?quality=95

# Optimized for size
https://cdn.icefiery.com/res/img_abc123.jpg?quality=60

Combining Parameters ​

Parameters can be combined to achieve the desired result:

# Resize and convert to WebP
https://cdn.icefiery.com/res/img_abc123.webp?width=400&height=300&resize=cover

# High quality PNG with specific dimensions
https://cdn.icefiery.com/res/img_abc123.png?width=800&height=600&quality=90

# Responsive image with height constraint
https://cdn.icefiery.com/res/img_abc123.webp?max_height=300&quality=85

# Complex transformation with multiple constraints
https://cdn.icefiery.com/res/img_abc123.jpg?max_width=600&max_height=400&resize=cover&quality=80

Next Steps ​