Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NgOptimizedImage warning

I'm trying new angular 15 feature to improve image performance and I came across this warning.

`The NgOptimizedImage directive (activated on an <img> element with the `ngSrc="/assets/fascinating.png"`) has detected that the intrinsic image is significantly larger than necessary.

` Basically the original image is too wide, and with the height and width attributes I made it too small for its size, in fact by increasing both the height and the width the warning disappears. But I want the image in that size, there is a way to remove that warning?

like image 882
FedeJs Avatar asked Oct 27 '25 02:10

FedeJs


1 Answers

The warning will not appear to you in production mode.

like image 109
FedMice Avatar answered Nov 02 '25 18:11

FedMice



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!