All Projects → cloudinary → Cloudinary Vue

cloudinary / Cloudinary Vue

Cloudinary components library for Vue.js application, for image and video optimization.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Cloudinary Vue

Cloudinary angular
Cloudinary Angular client library
Stars: ✭ 305 (+301.32%)
Mutual labels:  sdk, image-manipulation
Pesdk Android Demo
A fully customizable photo editor for your app.
Stars: ✭ 464 (+510.53%)
Mutual labels:  sdk, image-manipulation
App
Directus Admin Application — An Intuitive WebApp for Managing Database Content
Stars: ✭ 464 (+510.53%)
Mutual labels:  sdk, vue-components
Laravel Storage Qiniu
Laravel 5 七牛存储组件(不再维护)
Stars: ✭ 70 (-7.89%)
Mutual labels:  sdk
Aliyun Openapi Java Sdk
Alibaba Cloud SDK for Java
Stars: ✭ 1,170 (+1439.47%)
Mutual labels:  sdk
Hera
A framework for running WeChat applet. (小程序 SDK,小程序转 H5,小程序转安卓、iOS 原生应用、小程序渲染引擎)
Stars: ✭ 1,186 (+1460.53%)
Mutual labels:  sdk
Cdk
🎁 Vue Component Development Kit
Stars: ✭ 75 (-1.32%)
Mutual labels:  vue-components
In App Payments React Native Plugin
Stars: ✭ 70 (-7.89%)
Mutual labels:  sdk
Meilisearch Python
Python wrapper for the MeiliSearch API
Stars: ✭ 75 (-1.32%)
Mutual labels:  sdk
Pixelsorter
Pixel sorting tool for Python
Stars: ✭ 73 (-3.95%)
Mutual labels:  image-manipulation
Vue Mobiledoc Editor
A lightweight and customizable editor that allows you to embed rich content using Vuejs components.
Stars: ✭ 73 (-3.95%)
Mutual labels:  vue-components
Merge Images
Easily compose images together without messing around with canvas
Stars: ✭ 1,172 (+1442.11%)
Mutual labels:  image-manipulation
Unityrtc
基于webrtc的unity多人游戏实时语音(A Unity Demo for Impl Real-time Game Voice Among Mutiplayers Based On WEBRTC)
Stars: ✭ 74 (-2.63%)
Mutual labels:  sdk
Go Unifi
Unifi Controller API SDK for Go
Stars: ✭ 71 (-6.58%)
Mutual labels:  sdk
Modio Sdk Legacy
SDK for integrating mod.io into your game - a modding API for game developers
Stars: ✭ 75 (-1.32%)
Mutual labels:  sdk
Dart algolia
[Unofficial] Algolia is a pure dart SDK, wrapped around Algolia REST API for easy implementation for your Flutter or Dart projects.
Stars: ✭ 70 (-7.89%)
Mutual labels:  sdk
Weixin Python
微信SDK - 包括微信支付,微信公众号,微信登陆,微信消息处理等
Stars: ✭ 1,191 (+1467.11%)
Mutual labels:  sdk
Imageviewer
HDR, PFM, DDS, KTX, EXR, PNG, JPG, BMP image viewer and manipulator
Stars: ✭ 71 (-6.58%)
Mutual labels:  image-manipulation
Foal
Elegant and all-inclusive Node.Js web framework based on TypeScript. 🚀.
Stars: ✭ 1,176 (+1447.37%)
Mutual labels:  sdk
Insight
SymfonyInsight Official SDK
Stars: ✭ 73 (-3.95%)
Mutual labels:  sdk

Cloudinary Vue SDK

Build Status

Cloudinary is a cloud-based service that provides an end-to-end image and video management solution including uploads,storage, manipulations, optimizations and delivery. All your media resources are optimized and delivered through a fast CDN using industry best practices.

Using Cloudinary's Vue.js SDK, you can easily perform smart image and video manipulations using code that integrates seamlessly with your existing Vue.js application, and deliver optimized and responsive media to your users.

This Readme provides basic installation and usage information. For the complete documentation, see the Vue.js SDK guide_

🛠️ Installation

Vue 2.x

  1. Install using Vue-CLI

    • After you create your application with Vue-CLI, navigate to the created app folder, and install Cloudinary SDK by:
      vue add cloudinary
      
    • Set up your cloudName and pick the components to use (or use all 😃) Set up with cloudName and options
    • A cloudinary.js file will be added to your src directory, same level with your main.js file. Feel free to customize it if you like. And have fun with Cloudinary! 🤟
    • More information on the plugin, check out our Vue-CLI plugin for Cloudinary Repo
  2. install using your favorite package manager (yarn, npm)

    npm install cloudinary-vue
    yarn add cloudinary-vue
    

Nuxt.js

Please use Cloudinary module for Nuxt.js projects. You can set it up by using the following:

yarn add @nuxtjs/cloudinary
#OR
npm i @nuxtjs/cloudinary

Setup and configuration

Vue 2.x - Setup and configuration

  1. A Global setup - Include CloudinaryVue globally

    import Vue from 'vue';
    import Cloudinary, { CldImage, CldTransformation } from "cloudinary-vue";
    
    Vue.use(Cloudinary, {
      configuration: { cloudName: "demo" },
      components: {
        CldImage,
        CldTransformation
      }
    });
    
  2. A Local setup - You can also import the cloudinary components manually in each of your components.

Plugin Configuration

The CloudinaryVue Plugin accepts a components object with the Cloudinary components to install

  • components can also be passed as an array:

    components:[CldImage. CldTransformation]
    
  • components can also be used to rename the cloudinary components:

        components: {
            myImage: CldImage,
            myTransformation : CldTransformation
        }
    

General usage

In order to properly use this library you have to provide it with a few configuration parameters. All configuration parameters can be applied directly to the element, using a CldContext component or while installing a plugin (second argument of Vue.use).

<template>
  <div>
    <h1>Hello, world!</h1>

    <cld-image cloudName="demo" publicId="sample" crop="scale" width="300" />

    <cld-context cloudName="demo">
      <cld-image publicId="sample">
        <cld-transformation crop="scale" width="200" angle="10" />
      </cld-image>
    </cld-context>
  </div>
</template>

Required:

  • cloudName - The cloudinary cloud name associated with your Cloudinary account.

Optional:

  • privateCdn, secureDistribution, cname, cdnSubdomain - Please refer to Cloudinary Documentation for information on these parameters.

Specific usage

The library includes 5 components:

  • CldContext
  • CldTransformation
  • CldImage
  • CldVideo
  • CldPoster (only used together with CldVideo)

CldContext

CldContext allows you to define shared configuration and resource transformation parameters that are applied to all children elements.

CldImage

outputs HTML img tag with a correct src attribute for provided Cloudinary resource, based on configuration and transformation parameters provided as attributes of this component instance, parent CldContext and children CldTransformation instances.

CldVideo

outputs HTML video tag with a correct sources for provided Cloudinary resource, based on configuration and transformation parameters provided as attributes of this component instance, parent CldContext and children CldTransformation instances.

CldPoster (optional)

specify image resource to be provided to poster attribute of the video element

CldTransformation

The Transformation element allows you to defined additional transformations on the parent element. You can also use built-in transformation attribute available in CldImage and CldVideo for the same effect.

For example:

<cld-image cloudName="demo" publicId="sample">
  <cld-transformation angle="-45" />
  <cld-transformation effect="trim" angle="45" crop="scale" width="600" />
  <cld-transformation overlay="text:Arial_100:Hello" />
</cld-image>

How to contribute?

See contributing guidelines in a separate file.

Additional resources

Additional resources are available at:

Support

You can open an issue through GitHub.

Contact us at http://cloudinary.com/contact.

Stay tuned for updates, tips and tutorials: Blog, Twitter, Facebook.

Join the Community

Impact the product, hear updates, test drive new features and more! Join here.

License

Released under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].