Homecomponentsinformational

RemoteImage

An image fetched from a remote source.


Use RemoteImage to display an image from external source or CDN.

Aspect Ratio

Use aspectRatio to set the aspect ratio of the image. Using aspectRatio also sets the layout to fill.

Corner Radius

Use cornerRadius to set the corner radius of the image.

Brightness

Use brightness to set the brightness of the image.

Landscape photo by Tobias Tullius
50%
Landscape photo by Tobias Tullius
100% (Default)
Landscape photo by Tobias Tullius
150%

Saturation

Use saturation to set the saturation of the image.

Landscape photo by Tobias Tullius
0% (Grayscale)
Landscape photo by Tobias Tullius
50%
Landscape photo by Tobias Tullius
100% (Default)
Landscape photo by Tobias Tullius
150%

Blur

Use blur to blur the image.

Landscape photo by Tobias Tullius
Small
Landscape photo by Tobias Tullius
Medium
Landscape photo by Tobias Tullius
Large
Landscape photo by Tobias Tullius
XLarge

Next/Image Features

We provide a lot of features from Next/Image as is. See the API below.

Examples

Card Photos

A very common use of RemoteImage is to display a photo in a card.

Tobias Tullius

Photographer

Tobias Tullius

Photographer

Tobias Tullius

Photographer

Rounded Avatars

Another very common use is to display photos of people.

API

url
Required
The URL of the image.
string

width
The width of the image.
number

height
The height of the image.
number

aspectRatio
The aspect ratio of the image. Using this also sets the layout to "fill".
number

cornerRadius
The amount by which to round the image corners.

brightness
The brightness of the image between 0 and 1. Set over 1 to over brigthen the image.
number

blur
The amount by which to blur the image.
none
small
medium
large
xlarge

saturation
The amount by which to saturate or desaturate the image. Set over 1 to over saturate the image.
number

objectFit
ObjectFit

objectPosition
ObjectPosition<string | number>

layout
fill
intrinsic
fixed
responsive

loading
lazy
eager

alt
string

placeholder
blur
empty

quality
SafeNumber

priority
true
false

blurDataURL
string

unoptimized
true
false

data
An object with the data keys and values.
DataAttributeMap

itemID
string

itemProp
string

itemRef
string

itemScope
true
false

itemType
string