The `cloudinary-vue` package provides an SDK for integrating Cloudinary's image and video management capabilities into Vue 2 applications. It enables developers to transform, optimize, and deliver media assets efficiently. This version (1.2.4) is specifically designed for Vue 2.x projects and was last published in March 2022. It offers components like `CldImage`, `CldVideo`, and `CldTransformation` to embed and manipulate assets directly within Vue templates. Key differentiators include its declarative component-based approach for applying transformations, automatic optimization, and support for generating HTML tags. While it remains functional for Vue 2, new development and Vue 3 support have transitioned to the `@cloudinary/vue` package, making `cloudinary-vue` primarily in maintenance mode for legacy projects.
npm install cloudinary-vueVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates global setup of the Cloudinary Vue 2 SDK and basic usage of `cld-image` with a transformation and `cld-video` to render assets.
For Vue 3 projects, install `@cloudinary/vue` and consult its documentation for the updated API. For Vue 2, no fix is needed, but be aware of the lack of future updates.
Refer to the Cloudinary documentation on 'Vue.js image and video upload' for alternative methods like the Upload Widget or direct API calls.
Ensure you install `cloudinary-vue` for Vue 2 projects and `@cloudinary/vue` for Vue 3 projects. Verify your Vue version before installation.
For new projects or migration path, consider Vue 3 and the `@cloudinary/vue` package. For existing Vue 2 projects, be aware that security patches or feature enhancements are unlikely.
Ensure `import Vue from 'vue';` is at the top of your main entry file (e.g., `main.js`) and Vue is properly installed as a dependency.
Verify that `Vue.use(Cloudinary, { components: { CldImage, ... } })` is called, or ensure `components: { CldImage }` is defined in the component where you are using it.Ensure `cloudName` is set in the `configuration` object when calling `Vue.use(Cloudinary, { configuration: { cloudName: 'YOUR_CLOUD_NAME' } })` or on individual components via a prop.