nuxt / image

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

Absolute Cloudinary URLs do not work #1376

Open markbrouch opened 3 weeks ago

markbrouch commented 3 weeks ago

There is currently no way to use an absolute URL for the Cloudinary provider. One workaround may be to parse the absolute URL to return the path, but this is not sufficient when we do not know the domain at build time (such as the case for custom Cloudinary domains provided by a backend API request at runtime).

A good solution will allow an absolute Cloudinary URL to be passed to <NuxtImg> in addition to the currently supported relative URLs.

Example:

<NuxtImg src="https://res.cloudinary.com/example/image/upload/example.jpg" />