nuxt / image

Plug-and-play image optimization for Nuxt applications.
https://image.nuxt.com
MIT License
1.28k stars 253 forks source link

Provider Vercel is ignoring format #1365

Open MickL opened 1 month ago

MickL commented 1 month ago

According to Nuxt Image docs the output file format can be set (e.g. webp, jpg, png). Vercel also supports setting the output file format according to the docs.

However, this config needs to be set for each deployment but the Vercel provider totally ignores the format config.

Further the Nuxt Img docs state:

If the format is not specified, it will respect the default image format.

But this is not true, when using a jpg image and the format is not specified Vercel outputs webp.

Also I noticed the docs say there is a format prop to change the output for a specific image. However this is not true for all providers, e.g. Vercel does not have a query option to set the format.

It is very important to set the format for other libraries to work. E.g. nuxt-og-image is using Satori which does not support webp.