I'm currently working on a Next.js project and have encountered an issue with my logo. When I view the website on my iPhone, the logo appears to lose quality compared to other devices. Has anyone else experienced this problem? How did you go about solving it?
Here's a snippet of 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>
Check out the website here
Keep in mind that I opted to use the HTML <img>
tag instead of the Next.js Image component to maintain the image quality. While the Next.js Image component offers properties like quality
, it didn't quite meet my expectations for maintaining image quality.
For reference, here are images captured on both a Samsung phone and an iPhone: https://i.sstatic.net/h7lfl.jpg https://i.sstatic.net/QTsTK.jpg