Favorites

CSS image-resolution Property

image-resolution
CSS PropertyThis property is not supported by modern browsers.
Updated 22nd November 2026

The image-resolution property sets the resolution of images, such as 300dpi or from-image. No browser supports it yet.

Looks like you're using an ad blocker, and that's fine! Ads help keep CSS Portal's generators and references free, so if the site's useful to you, visit our Support page to see other ways to help.

Description

The image-resolution property was proposed in CSS Images Level 4 to set the intrinsic resolution of raster images, which controls how large they are displayed by default. A 300dpi photo, for example, could be shown at its physical print size instead of one image pixel per CSS pixel. The from-image keyword would use the resolution stored in the file's metadata, and snap would round to a value that maps image pixels to whole device pixels.

No browser implements it. To serve images for different pixel densities use srcset with x descriptors, or the image-set() function in CSS.

Definition

Initial value
1dppx
Applies to
all elements
Inherited
yes
Computed value
as specified, except with <resolution> possibly altered by snap
Animatable
discrete
JavaScript syntax
object.style.imageResolution

Syntax

image-resolution: [ from-image || <resolution> ] && snap?;

Values

  • from-imageUses the resolution specified in the image file, if any.
  • <resolution>An explicit resolution such as 300dpi or 2dppx.
  • snapRounds the resolution so that one image pixel maps to a whole number of device pixels.
  • initialSets the property to its initial value.
  • inheritTakes the computed value of the parent element.

Example

<img src="https://picsum.photos/id/1015/400/300" alt="Mountain" width="240">
img {
  image-resolution: 300dpi;   /* not supported by any browser */
  border: 1px solid #ccc;
}
Open in editor

Browser Support

The following information will show you the current browser support for the CSS image-resolution property. Hover over a browser icon to see the version that first introduced support for this CSS property.

This property is not supported by modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported

Looks like you're using an ad blocker, and that's fine! Ads help keep CSS Portal's generators and references free, so if the site's useful to you, visit our Support page to see other ways to help.