@dtwojs/cloudinary
v2.7.0
Published
Cloudinary module for Dtwo
Maintainers
Readme
@dtwojs/cloudinary
Cloudinary integration with for Dtwo
This is a module for version 3.X of Dtwo.
Features
- Dtwo 3 ready
- Useful
CldImage,CldOgImage&CldVideoPlayercomponents - Handy
useCldImageUrlcomposable - Automatically optimize images and deliver in modern formats
- Remove backgrounds from images
- Dynamically add image and text overlays to images
Quick Setup
- Add
@dtwojs/cloudinarydependency to your project
yarn add @dtwojs/cloudinary
npm install @dtwojs/cloudinary- Add
@dtwojs/cloudinaryto themodulessection ofdtwo.config.ts
export default defineDtwoConfig({
modules: ['@dtwojs/cloudinary'],
})- Create .env file with following
CLOUDINARY_CLOUD_NAMEvariable:
CLOUDINARY_CLOUD_NAME=<YOUR_CLOUDINARY_CLOUD_NAME>And that's it! You can now use Cloudinary in Dtwo ✨
<template>
<CldImage
src="cld-sample-5"
width="987"
height="987"
alt="My Awesome Image"
/>
</template>