Cloudinary integration with for NuxtJS
- On-the-fly url generating for images and videos
- On-the-fly size optimization per browser and device
- Pre-generate url generation for images and videos on build
- Fast loading speed with progressive images
- Auto-detect the optimized format per browser for images and videos
- Dynamically fetch and transform images and videos from remote sources
- Reactive transformations on images and videos
- Upload images and videos
- Minimum configuration required to set up Cloudinary and running
- Add
@nuxtjs/cloudinary
dependency to your project
# using yarn
yarn add @nuxtjs/cloudinary
# using npm
npm install @nuxtjs/cloudinary
- Add
@nuxtjs/cloudinary
to themodules
section ofnuxt.config.js
{
modules: [
// Simple usage
'@nuxtjs/cloudinary',
// With options
['@nuxtjs/cloudinary', { /* module options */ }]
]
}
Or a separate section cloudinary
for module options:
{
modules: [
// Simple usage
'@nuxtjs/cloudinary',
],
cloudinary: {
cloudName: '<your-cloudinary-cloudname>',
/* all other options */
}
}
See module options.
This module globally injects $cloudinary
instance to the application. You can access it anywhere using this.$cloudinary
(within a component), or context.$cloudinary
(for plugins, asyncData
, fetch
, nuxtServerInit
and middleware).
Simple use example:
const url = this.$cloudinary.image
.url('sample', { crop: 'scale', width: 200 })
See Usage - Build Image URLs and Tags.
This module uses the official Vue components built for Cloudinary and registers the following components for use in the application: CldImage
, CldVideo
and other supportive components.
- Clone this repository
- Install dependencies using
yarn install
ornpm install
- Start development server using
npm run dev
Copyright (c)
Maintained by Maya Shavin
cloudinary-module's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.