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, ...} )" />