Image Transformation Operations

Scale Mode | c_scale

If no current mod is selected (neighter c_scale, c_crop nor c_fit) current mod defaults to c_scale.

Dynamic URL below can be used to set image height as 300 pixel:

http://cdn.image4.io/i4io/h_300/demo-images/hummingbird.jpeg

There is no w parameter in the dynamic URL, but width value is automatically calculated using h to keep aspect ratio of the original image.

Fit Mode | c_fit

To fit the image into a 300x300 frame, dynamic URL below can be used:

http://cdn.image4.io/i4io/c_fit,w_300,h_300/demo-images/hummingbird.jpeg

Crop Mode | c_crop

Dynamic URL below can be used to discard the unwanted parts of the image and show the wanted part.

http://cdn.image4.io/i4io/c_crop,w_400,h_320,g_bottom_right/demo-images/hummingbird.jpeg

G parameter can take values of g_top, g_right, g_bottom, g_left, g_top_left, g_top_right, g_bot_right, g_bot_left g_center.

If no valid region is entered, it defaults to center.