Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
Say hello to Angular's future home!Check out Angular.devHome
/

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[];
    disableImageSizeWarning?: boolean;
    disableImageLazyLoadWarning?: boolean;
};