Image component for all images?
Unanswered
Maltese posted this in #help-forum
MalteseOP
Is it a good idea to always use Next.js' custom Image component even when dealing with simple .svg or .png files like logo, icons, etc.?
4 Replies
American Chinchilla
For svgs it will be different
Next wont opitmizw svg
But it will only lazy load it
@Maltese Is it a good idea to always use Next.js' custom Image component even when dealing with simple .svg or .png files like logo, icons, etc.?
Turkish Van
You should always prefer to use
But yes, as 泣いオオカミー ≛ 🏆 ≛ stataed above, SVG images are a bit different.
Check it here: https://nextjs.org/docs/app/api-reference/components/image#dangerouslyallowsvg
next/image component when dealing with images.But yes, as 泣いオオカミー ≛ 🏆 ≛ stataed above, SVG images are a bit different.
Check it here: https://nextjs.org/docs/app/api-reference/components/image#dangerouslyallowsvg