Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

ImageLoaderConfig

Config options recognized by the image loader function.

      
      interface ImageLoaderConfig {
  src: string
  width?: number
  isPlaceholder?: boolean
  loaderParams?: {...}
}
    

See also

Properties

Property Description
src: string

Image file name to be added to the image request URL.

width?: number

Width of the requested image (to be used when generating srcset).

isPlaceholder?: boolean

Whether the loader should generate a URL for a small image placeholder instead of a full-sized image.

loaderParams?: { [key: string]: any; }

Additional user-provided parameters for use by the ImageLoader.