I am working on a Next.js project that faced this problem. I have a logo that loses its quality when I open the website on my iPhone but not on other devices. Did anyone face this problem? How can I solve it?
My code:
<div className="flex items-center">
<Link href="/" className="flex items-center">
<img
src="/assets/img/navbar_logo.svg"
alt="logo"
className="md:w-[115px] md:h-[65px] w-[90px] h-[44px]"
/>
</Link>
</div>
Note: I used the HTML <img>
tag instead of the Next.js Image component to show the real quality of the image. I know the Next.js Image component has some properties like quality
for this, but it was not showing the real quality.
These are images that were taken on a Samsung phone and a iPhone.