Recently, I have encountered an issue when using NuxtImg where my images appear rotated by 90°. This problem specifically arises with vertical mobile images that are read from supabase and displayed. Interestingly, the images look fine before uploading them or while they are on supabase (in portrait orientation).
Strangely, switching to the standard img tag resolves the rotation issue and the images display correctly in portrait style...
This is my current nuxt config :
image: {
inject: true,
quality: 80,
format: ['webp'],
screens: {
'xs': 120,
'sm': 240,
'md': 290,
'lg': 384,
'xl': 480,
'xxl': 480,
'2xl': 480
},
domains: ['images.unsplash.com', 'draxies.com', 'qzlburhygrqslzasuiak.supabase.co']
},
Here's the code snippet for NuxtImg :
<div class="relative pb-64 z-0">
<NuxtImg class="absolute w-full h-full rounded-lg object-cover border-b shadow-md"
:src="offer.offer_image_url" :alt="offer.offer_title" placeholder />
</div>