Skip to content
Image Masking

Clip images into shapes using CSS border-radius and object-fit.

Original

Original colour image

Circle

Image cropped to a circle

Arch

Image cropped to an arch shape

Pill

Image cropped to a wide pill shape

Rotation — CSS transform

A slight tilt using CSS transform: rotate(). The surrounding space is preserved with margin.

Image tilted slightly anti-clockwise using CSS transform

Rotation — SVG attribute (no CSS)

The same tilt using an SVG transform presentation attribute — no stylesheet or inline style involved. The rotate(angle, cx, cy) values set the angle and centre point of rotation.

Rotation — diamond (45°)

Square image rotated 45 degrees to form a diamond

© 2026 Docizr. All rights reserved.