📄️ Edge-detection crop
Automatically crop an image on a solid background color. Autocrop with edge detection is useful for achieving a uniform look for your images, for example to standardize ecommerce product images.
📄️ Blur
‘blur‘ applies blur to an image. The range is set on a scale from 0 (the default) to 100.
📄️ Brightness
'brightness' is set on a scale from \-100 (very dark) to 100 (very bright opaque). The default is 0.
📄️ Canvas
Add space around your image by adjusting the canvas size.
📄️ Color levels
Levels can correct the tonal range and color balance of an image.
📄️ Color
All color parameters in Sirv are applied in the same way, with RGB or RGBA references.
📄️ Colorize
Colorize is a simple way to wash a color over an entire image.
📄️ Colortone
'colortone' alters the color scheme of an image. It can add emotion to images, with Instagram-style effects.
📄️ Contrast
'contrast' is set on a scale from \-100 (low contrast) to 100 (high contrast).
📄️ Crop
Crop any part of an image by choosing a new width and height plus starting point for the crop. \[democrop\] Choose the new width and/or height - if you omit one, it will default to 100% of the image. Use 'cw' to specify the new width in pixels or percent (%). The example below was 400px and has been cropped to 300px width//demo.sirv.com/looks.jpg?cw=300 Image cropped in width Use 'ch' to specify the new height in pixels or percent (%). The example below has been cropped to 100px height//demo.sirv.com/looks.jpg?ch=100 Image cropped in height Unless explicitly stated, cropping will start from the top left of the image. This can be adjusted with 'cx' and 'cy' options. These 2 options will move the point of the crop in a specified number of pixels from the top left. For example, the cropping starts at 107 pixels across and 17 pixels down//demo.sirv.com/looks.jpg?ch=166&cw=166&cx=107&cy=17 Image cropped in width and height You can crop around the center of the image by setting cx and cy to 'center'//demo.sirv.com/looks.jpg?ch=250&cw=190&cx=center&cy=center Image cropped in width and height with center specified as starting point This image is cropped around the center of the image to 50% of its original height, 100% of its original width//demo.sirv.com/looks.jpg?ch=50%&cw=100%&cy=center&cx=center Image cropped to 50% height from center Cropping can be combined with resizing to create an image of any size and shape//demo.sirv.com/looks.jpg?w=50%&h=50%&ch=120&cw=120&cx=40&cy=0 Resized and cropped image
📄️ Dynamic imaging
{`table#di-opt, table#di-opt td {
📄️ Exposure
'exposure' is set on a scale from -100 (underexposed) to 100 (overexposed). https//demo.sirv.com/look.jpg?exposure=-20
📄️ Face detection crop
Automatically detect faces in your image and crop them. Sirv uses deep learning neural networks, trained on millions of images to accurately detect faces in images. Faces can be detected in as little as 200ms.
📄️ Format & Quality
Sirv can serve your images in either JPEG, PNG, WebP, AVIF or GIF format - regardless of your original image format. By default, it does automatically serves the most suitable image, thanks to Sirv's "optimal" format.
📄️ Frame and canvas together
As with all Sirv options, Frame and Canvas values may be combined. When doing so, the frame will appear on the outside of the canvas. In other words, the canvas area is considered to be part of the image before a frame is applied. https https://sirv.sirv.com/Examples/test-bike.jpg?canvas.width=370&canvas.height=256&canvas.color=WhiteSmoke&w=300&text.position=north&text=Take%20me%20to%20the%20velodrome&text.font.family=Architects%20Daughter&text.color=black&text.size=50%&frame.style=solid&frame.color=CadetBlue&frame.width=6
📄️ Frame
Add borders and effects around your images by applying the frame option. Frames can have different styles, from a plain solid color around the image to styles that bring elements of the image into the frame.
📄️ GIF
Sirv automatically serves GIFs as animated WebP images - if the users browser supports WebP - which drastically reduces image file size. If you specifically require GIF format, you can compress your GIFs with the gif.lossy parameter.
📄️ Highlights
'highlights' is set on a scale from -100 to 100. The highlights setting can increase/decrease the intensity of highlights in the image. https//demo.sirv.com/looks.jpg?highlights=-15
📄️ Hue
'hue' is set on a scale from -100 to 100. The hue refers to the color or shade. https//demo.sirv.com/kitesurf.jpg?hue=-20 Example image, different hue = -20 You could use hue (and saturation) to adjust the color of a product, for example//sirv.sirv.com/website/demos/adidas/adidas-01-01.jpg?hue=-83 https//sirv.sirv.com/website/demos/adidas/adidas-01-01.jpg?hue=-17 https//sirv.sirv.com/website/demos/adidas/adidas-01-01.jpg?hue=50 https://sirv.sirv.com/website/demos/adidas/adidas-01-01.jpg?hue=83
📄️ Dynamic Imaging Overview
Welcome to Sirv's Dynamic Imaging documentation! This section covers all the powerful ways you can transform, adjust, and optimize your images on-the-fly.
📄️ Light
Light is an essential part of images, by using Sirv's dynamic imaging options you can alter your images by simply changing the URL, without PhotoShop and other image editing tools. Some practical usage examples include, but are not limited to:
📄️ Lightness
'lightness' is set on a scale from -100 to 100. The lightness adjusts the lightness (white) or darkness (black) of the image. https//demo.sirv.com/trek.jpg?lightness=-20
📄️ Multiple text layers
You can apply up to 4 text layers to the same image. Designate each text layer independently as 'text.n', where n is 0, 1, 2, or 3. The following example applies 2 text layers - one above, one below the image//sirv.sirv.com/Examples/test-sky.jpg?w=360&text.0.text=Hello&text.0.position=north&text.0.size=20%&text.0.color=ffffff&text.1.text=World!&text.1.position=south&text.1.size=34%&text.1.color=ffffff Image with 2 text layers Each text layer can have their own options and up to 100 characters of text. The example below has a bold image title to the right and a discreet copyright notice in the bottom right//sirv.sirv.com/website/demos/glastonbury.jpg?w=420&text.0.text=%C2%A9Michael Eavis&text.1.text=Glastonbury 2014&text.1.position=east&text.1.size=38%&text.1.background.opacity=50%&text.1.font.weight=bold&text.1.font=Raleway&text.0.color=grey Image with two customized text watermarks
📄️ Multiple watermarks
You can apply up to 4 image layers in a profile, giving you heaps of creative freedom. Use them for watermarks, decorative effects, lomo-style effects and other uses for which you might otherwise have used Photoshop. Designate each layer independently as 'watermark.n'. Where n is 0, 1, 2, or 3. The image to the right has 3 image layers - in the top left (holly), bottom right (holly rotated) and over the whole image (snow). The two holly images are the same - the bottom right one has been rotated 180 degrees. It also has a text layer thrown in for good measure. The code for the image on the right is//sirv.sirv.com/website/demos/girl-hat.jpg?w=300&watermark.0.image=%2fwebsite%2fdemos%2fchristmas1.png&watermark.0.position=northwest&watermark.0.scale.width=70%&watermark.1.image=%2fwebsite%2fdemos%2fchristmas1.png&watermark.1.position=southeast&watermark.1.rotate=180&watermark.1.scale.width=70%&watermark.2.image=%2fwebsite%2fdemos%2fsnowfall.png&watermark.2.scale.width=300&text.3.text=Merry%20Christmas!&text.3.position=south&text.3.font.weight=bold&text.3.size=75%&text.3.color=white&text.3.outline.color=black&text.3.outline.width=12
📄️ Opacity
'opacity' adjusts the transparency of PNG images, from 0 to 100% (default is 100). \[demoopacity\] Sirv predicts the most optimal format when serving images, so PNG images are often served in WebP format, at much smaller file size. This helps achieve the best possible image optimization. Apply opacity to a PNG image like so//demo.sirv.com/website/sirv-logo-small.png?opacity=50 Sirv logo with 50% opacity
Display PDF files as images simply by applying any of Sirv's image processing options. For example, show the PDF as a 400px width image by appending ?w=400 to the URL. The first page will be displayed, or you can use the page parameter to specify which page should be shown. \[demopdf\] The PDF will be converted to a WebP image if the users browser supports WebP, otherwise a PNG will be served. Alternatively, you can specify which image format should be served.
📄️ PNG optimization
Sirv applies PNG optimization by default, to dramatically reduce the file size of your PNG images.
📄️ Point-of-interest crop
Automatically identify the most interesting part of the image and crop into it. This machine learning crop algorithm gives you instant creative direction.
📄️ Profiles
{`div.Sirv {
📄️ Resize
Sirv instantly resizes images when you specify width or height in the URL. A new image is immediately created using the dimensions you request.
📄️ Retina images
It's easy to serve retina images to hi-res screens with Sirv. If your page uses Sirv JS, then retina images will be served automatically. Alternatively, you can manually specify retina images with 'srcset'. The pros and cons are described below.
📄️ Rotate
To rotate an image, set the 'rotate' option to the required number of degrees, which can range from \-180 to 180.
📄️ Saturation
'saturation' is set on a scale from -100 to 100. The saturation refers to the intensity of a color. https//demo.sirv.com/rocky.jpg?saturation=-30
📄️ Shadows
'shadows' is set on a scale from -100 to 100. The shadows setting can increase/decrease the intensity of shadows in the image. https//demo.sirv.com/pinkbag3.jpg?shadows=-15
📄️ Sharpen
'sharpen' applies sharpening to an image, to emphasize edges within the image. It reduces blur and gives greater focus to the image details. The range is set on a scale from 0 (default) to 100.
📄️ Special characters
Different browsers render URLs differently and sometimes unpredictably. If you're adding special characters to your URL (perhaps to create a text overlay), you may need to use the ASCII equivalent:
📄️ Stylize
Blur Vignette Opacity
📄️ Text
Overlay text anywhere on the image. Adjust the font, style, size, colors and effects. Up to 4 layers can be overlaid.
📄️ Square thumbnail
You can create square thumbnail images with the thumbnail option. Here is a 180px thumbnail image//demo.sirv.com/look.jpg?thumbnail=180
📄️ TIFF
Sirv will automatically serve TIFF files in the most optimal web image format (normally WebP). Simply set a size for your image and it'll be instantly served from Sirv's dynamic imaging engine.
📄️ Vignette
A vignette (dark edges) can be added around an image. You're able to control the amount of vignette and its color.
📄️ Watermark
Overlay images on top of others to create watermarks and other creative designs. Up to 4 images can be overlaid on top (or behind) an image, giving you many creative possibilities. PNG images are usually preferable as you can control their opacity.