1.6.0 • Published 1 year ago

@cloudinary/vue3 v1.6.0

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

Cloudinary Vue 3 SDK

About

The Cloudinary Vue 3 SDK allows you to quickly and easily integrate your application with Cloudinary. Effortlessly optimize and transform your cloud's assets.

Note

This Readme provides basic installation and usage information.

Table of Contents

Key Features

Version Support

SDK VersionVue 3.x
1.0.0 & upV

Installation

Install using your favorite package manager (yarn, npm)

npm i @cloudinary/url-gen @cloudinary/vue3

Or

yarn add @cloudinary/url-gen @cloudinary/vue3

Usage Example

Setup

<script type="module">
import { AdvancedImage, responsive } from "@cloudinary/vue3"
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>```

### Generate Image elements
    - Use <AdvancedImage> to generate image tags

### Advanced Plugin Features
- [See full documentation](https://cloudinary.com/documentation/react_integration#plugins)

We recommend the following order when using our plugins to achieve the best results:
```js
[lazyload(),responsive(), accessibility(), placeholder()]

You can omit any plugin, but the order from above should remain.

File upload

This SDK does not provide file upload functionality, however there are several methods of uploading from the client side.

Contributions

  • Ensure tests run locally (npm run test)
  • Open a PR and ensure Travis tests pass

Get Help

If you run into an issue or have a question, you can either:

About Cloudinary

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.

Additional Resources

Licence

Released under the MIT license.