The Cloudinary Vue SDK allows you to quickly and easily integrate your application with Cloudinary. Effortlessly optimize and transform your cloud's assets.
This Readme provides basic installation and usage information.
SDK Version | Vue 3.x |
---|---|
1.0.0 & up | V |
npm i @cloudinary/url-gen @cloudinary/vue
Or
yarn add @cloudinary/url-gen @cloudinary/vue
<script type="module">
import { AdvancedImage, responsive } from "@cloudinary/vue"
import { CloudinaryImage } from "@cloudinary/url-gen/assets/CloudinaryImage";
export default {
components: {
AdvancedImage
},
data() {
return {
plugins: [responsive({steps: 100})],
cldImg: new CloudinaryImage(
"sample",
{cloudName: "demo"}
)
};
}
};
</script>
<template>
<div>
<p>text</p>
<AdvancedImage :cldImg="cldImg" :plugins="plugins" />
</div>
</template>
- Use to generate image tags
- Use to generate image tags
We recommend the following order when using our plugins to achieve the best results:
[lazyload(), responsive(), accessibility(), placeholder()]
You can omit any plugin, but the order from above should remain.
This SDK does not provide file upload functionality, however there are several methods of uploading from the client side.
- Ensure tests run locally (
npm run test
) - Open a PR and ensure Travis tests pass
If you run into an issue or have a question, you can either:
- Open a Github issue (for issues related to the SDK)
- Open a support ticket (for issues related to your account)
Cloudinary is a powerful media API for websites and mobile apps alike, Cloudinary enables developers to efficiently manage, transform, optimize, and deliver images and videos through multiple CDNs. Ultimately, viewers enjoy responsive and personalized visual-media experiences—irrespective of the viewing device.
- Cloudinary Transformation and REST API References: Comprehensive references, including syntax and examples for all SDKs.
- MediaJams.dev: Bite-size use-case tutorials written by and for Cloudinary Developers
- DevJams: Cloudinary developer podcasts on YouTube.
- Cloudinary Academy: Free self-paced courses, instructor-led virtual courses, and on-site courses.
- Code Explorers and Feature Demos: A one-stop shop for all code explorers, Postman collections, and feature demos found in the docs.
- Cloudinary Roadmap: Your chance to follow, vote, or suggest what Cloudinary should develop next.
- Cloudinary Facebook Community: Learn from and offer help to other Cloudinary developers.
- Cloudinary Account Registration: Free Cloudinary account registration.
- Cloudinary Website: Learn about Cloudinary's products, partners, customers, pricing, and more.
Released under the MIT license.