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.

ImageConfig

A configuration object for the image-related options. Contains:

  • breakpoints: An array of integer breakpoints used to generate srcsets for responsive images.
  • disableImageSizeWarning: A boolean value. Setting this to true will disable console warnings about oversized images.
  • disableImageLazyLoadWarning: A boolean value. Setting this to true will disable console warnings about LCP images configured with loading="lazy". Learn more about the responsive image configuration in the NgOptimizedImage guide. Learn more about image warning options in the related error page.
      
      type ImageConfig = {
    breakpoints?: number[];
    placeholderResolution?: number;
    disableImageSizeWarning?: boolean;
    disableImageLazyLoadWarning?: boolean;
};