Is there a way to add modifiers to an existing provider? #2059
Unanswered
remihuigen
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm hosting media on Cloudinary and using it together with Nuxt Image. To handle both images and videos, I currently define two providers:
Defining the extra
videoprovider lets me use<NuxtImg>for video thumbnails, which works fine functionally. The issue is that video transformations use a different set of modifiers than images. Previously, this wasn’t a problem because modifiers weren’t typed. After the latest Nuxt Image release, passing video-specific modifiers now leads to type errors:Is there a way to extend the provider definition so video transforms—like
startOffset—are recognized as valid modifiers? I could implement a custom provider, but that feels like overkill for what I’m trying to solve.Beta Was this translation helpful? Give feedback.
All reactions