0.0.5 • Published 6 years ago

vue-cloudinary-plugin v0.0.5

Weekly downloads
103
License
MIT
Repository
github
Last release
6 years ago

vue-cloudinary-plugin

Pluging used only for building URL to cloudinary image based on imageId Inspired by vue-cloudinary

Usage

Init

Vue.use(VueCloudinary, {
  "cloud_name": "<your cloud name>",
  "api_key": "<your api key>",
  "cdn_subdomain": true,
  ... (*)
}, {
  "crop": "<crop value>",
  "fetch_format": "<fetch_format>",
  // others default values for mods 
});

Usage

In template just call

// pass all reuired mods as 2nd arg, or just {} to apply only default
<img :src="$cloudinaryUrl(imageId, {width: xxx, height: xxx, ...} )" />

License

MIT