nuxt-modules / cloudinary

Cloudinary Module for Nuxt
https://cloudinary.nuxtjs.org
MIT License
249 stars 34 forks source link

Cloudinary Module vs Image Module #127

Closed Hebilicious closed 1 year ago

Hebilicious commented 1 year ago

What would be the difference/advantages of using this module instead of the official Nuxt Image module ? They seem to be sharing the same scope.

Baroshem commented 1 year ago

Hey,

Interesting question!

NuxtImage is a generic module and component that allows you to have optimized images and it supoorts multiple providers (by default ipx) and can use Cloudinary. But it supports only certain amount of image optimizations and transformations due to an agnostic interface.

This module however, uses the cloudinary url loader under the hood that allows for many more modifications on the actual image.

It will also come with a set of components (not yet developed but will be in upcoming weeks) such as OgImage, Widget, Upload, etc.

Let me know if that makes sense :)

Hebilicious commented 1 year ago

Hey,

Interesting question!

NuxtImage is a generic module and component that allows you to have optimized images and it supoorts multiple providers (by default ipx) and can use Cloudinary. But it supports only certain amount of image optimizations and transformations due to an agnostic interface.

This module however, uses the cloudinary url loader under the hood that allows for many more modifications on the actual image.

It will also come with a set of components (not yet developed but will be in upcoming weeks) such as OgImage, Widget, Upload, etc.

Let me know if that makes sense :)

It does make sense yes. I was just wondering if you thought about joining forces and "merging" all of this work into the other module, as it feels like there's 2 official solutions (and the cloudinary docs recommend the Nuxt/Image module). Or do you think that these 2 approaches are too different ? I see that you're using unpic, and the nuxt Image module doesn't.

Baroshem commented 1 year ago

Yeah, I thought about that.

I even created a PR for that ;) https://github.com/nuxt/image/pull/766

But with the Nuxt Core Team, we decided that it would be better to have a separate module with all the advanced functionality.

The unpic was suggested by Colby Fayock as Cloudinary is using it for Svelte Cloudinary as well :)

Hebilicious commented 1 year ago

Yeah, I thought about that.

I even created a PR for that ;) nuxt/image#766

But with the Nuxt Core Team, we decided that it would be better to have a separate module with all the advanced functionality.

The unpic was suggested by Colby Fayock as Cloudinary is using it for Svelte Cloudinary as well :)

Haven't seen this PR and I liked this approach, so I'm surprised by the outcome. IMO the Nuxt core team needs help for managing the ecosystem (some official modules like auth are still stuck in v2). Out of curiosity, given the opportunity, would you be interested in helping maintaining and developing the Image module ?

Baroshem commented 1 year ago

The Image module is one of the core nuxt modules that are being maintained by the core team and Nuxt Labs. Contributors are open to help but more like individual contributions rather than full maintenance as in the case of smaller modules such us this one :)