# Add Frame to Image

Add borders and effects around your images by applying the **frame** option.

Using an AI coding agent?

Install the [`sirv-dynamic-imaging`](https://www.skills.sh/sirv/image-optimization-skill/sirv-dynamic-imaging) skill, and your agent can build these image URLs for you. Ask in plain words, such as “Serve our product photos as 800px WebP.” [See all 8 skills](/help/rest-api/sirv-skills-for-ai-agents/)

Frames can have different styles, from a plain **solid** color around the image to styles that bring elements of the image into the frame.

### Demo

Try it

![Original image](https://demo.sirv.com/sky.jpg?w=800)

Original

![Image with the options applied](https://demo.sirv.com/sky.jpg?frame.style=mirror&frame.color=327BBA&frame.width=10&frame.rim.color=97A6B1&frame.rim.width=1)

With options

Style

solidmirroredgedither

Color`327BBA`

Width

px%

Rim color`97A6B1`

Rim width

px%

https://demo.sirv.com/sky.jpg**?frame.style=mirror&frame.color=327BBA&frame.width=10&frame.rim.color=97A6B1&frame.rim.width=1**

[](https://demo.sirv.com/sky.jpg?frame.style=mirror&frame.color=327BBA&frame.width=10&frame.rim.color=97A6B1&frame.rim.width=1)

### Frame style

`frame.style` - sets the type of frame that surrounds the image. Acceptable values are `solid`, `mirror`, `edge`, `dither`, `none`. The default value is `solid`.

`https://sirv.sirv.com/Examples/test-sky.jpg?frame.style=solid`

  
![Example image with solid black frame](https://sirv.sirv.com/Examples/test-sky.jpg?w=500&frame.style=solid)

`mirror` - creates a “silvered” semi-opaque frame around the image, allowing some of the image to be seen underneath. The underlying image is a mirror reflection of the nearby image.

`https://sirv.sirv.com/Examples/test-sky.jpg?frame.style=mirror`

  
![Example image with mirror frame](https://sirv.sirv.com/Examples/test-sky.jpg?w=500&frame.style=mirror)

`edge` - creates a “silvered” semi-opaque frame around the image, and blurs the edges of the image underneath the frame.

`https://sirv.sirv.com/Examples/test-sky.jpg?frame.style=edge`

  
![Example image with edge frame](https://sirv.sirv.com/Examples/test-sky.jpg?w=500&frame.style=edge)

`dither` - creates a “silvered” semi-opaque frame around the image, and “feathers” the image under the frame.

`https://sirv.sirv.com/Examples/test-sky.jpg?frame.style=dither`

  
![Example image with dither frame](https://sirv.sirv.com/Examples/test-sky.jpg?w=500&frame.style=dither)

### Frame color

`frame.color` - sets the color of the surrounding frame. The values are set with hex RGB/RGBA or a color name. The default value is ‘black’.

`https://sirv.sirv.com/Examples/test-sky.jpg?frame.style=solid&frame.color=CA6902`

![Example image with solid colored frame](https://sirv.sirv.com/Examples/test-sky.jpg?w=500&frame.style=solid&frame.color=CA6902)

The example below uses the same color as above, with the ‘mirror’ style:

`https://sirv.sirv.com/Examples/test-sky.jpg?frame.style=mirror&frame.color=CA6902`

  
![Example image with mirror-style colored frame](https://sirv.sirv.com/Examples/test-sky.jpg?w=500&frame.style=mirror&frame.color=CA6902)

### Frame width

`frame.width` - sets the width of the surrounding frame, in pixels or percentage (%). The default value is ‘5%’.

`https://sirv.sirv.com/Examples/test-sky.jpg?frame.style=mirror&frame.color=CA6902&frame.width=40`

![Example image with 40%-width frame](https://sirv.sirv.com/Examples/test-sky.jpg?w=500&frame.style=mirror&frame.color=CA6902&frame.width=40)

### Rim color

`frame.rim.color` - sets the color of the inner edge of the surrounding frame. The values are set with hex RGB/RGBA or a color name. The default value is ‘white’. The example below has been changed to black.

`https://sirv.sirv.com/Examples/test-sky.jpg?frame.style=mirror&frame.color=white&frame.width=40&frame.rim.color=black`

![Example image with black-rimmed frame](https://sirv.sirv.com/Examples/test-sky.jpg?w=500&frame.style=mirror&frame.color=white&frame.width=40&frame.rim.color=black)

### Rim width

`frame.rim.width` - sets the width in pixels or percentage (%) of the inner edge of the surrounding frame. The default value is ‘1’.

`https://sirv.sirv.com/Examples/test-sky.jpg?frame.style=mirror&frame.color=white&frame.width=40&frame.rim.color=black&frame.rim.width=6`

![Frame with 6%-width black rim](https://sirv.sirv.com/Examples/test-sky.jpg?w=500&frame.style=mirror&frame.color=white&frame.width=40&frame.rim.color=black&frame.rim.width=6)

Combine the frame style, color, width and rim options to create the frame you need.
