Cloudinary Angular SDK

Cloudinary Angular 客户端库。「Cloudinary Angular client library」

Cloudinary Angular SDK

About

NOTE-IMPORTANT: This is a legacy package, please find latest at https://github.com/cloudinary/frontend-frameworks/tree/master/packages/angular

The Cloudinary Angular SDK allows you to quickly and easily integrate your application with Cloudinary.
Effortlessly optimize, transform, and manage your cloud's assets.

Note

This Readme provides basic installation and usage information.
For the complete documentation, see the Angular SDK Guide.

Table of Contents

Key Features

Version Support

SDK Version ng 2 ng 4 ng >=5.0.0
5.x X X V
4.x X V X
2.x V X X

Installation

npm install @cloudinary/angular-5.x cloudinary-core --save

Usage

Setup

import { NgModule } from '@angular/core';
// ...
import { CloudinaryModule, CloudinaryConfiguration } from '@cloudinary/angular-5.x';
import { Cloudinary } from 'cloudinary-core';

@NgModule({
    imports: [
        CloudinaryModule.forRoot({Cloudinary}, { cloud_name: 'your_cloud_name' } as CloudinaryConfiguration),
    ],
    bootstrap: [/* ... */]
})
export class AppModule { }

Transform and Optimize Assets

    <cl-image public-id="readme" class="thumbnail inline" angle="20" format="jpg">
        <cl-transformation height="150" width="150" crop="fill" effect="sepia" radius="20"></cl-transformation>
        <cl-transformation overlay="text:arial_60:readme" gravity="north" y="20"></cl-transformation>
    </cl-image>

Generate Image and Video HTML Tags

- Use <cl-image> to generate image tags
- Use <cl-video> to generate video tags

File upload

This SDK does not provide file upload functionality, however there are several methods of uploading from the client side.

Contributions

  • Ensure tests run locally (npm run test)
  • Open a PR and ensure Travis tests pass

Get Help

If you run into an issue or have a question, you can either:

About Cloudinary

Cloudinary is a powerful media API for websites and mobile apps alike, Cloudinary enables developers to efficiently manage, transform, optimize, and deliver images and videos through multiple CDNs. Ultimately, viewers enjoy responsive and personalized visual-media experiences—irrespective of the viewing device.

Additional Resources

Licence

Released under the MIT license.

主要指標

概覽
名稱與所有者cloudinary/cloudinary_angular
主編程語言TypeScript
編程語言JavaScript (語言數: 4)
平台
許可證MIT License
所有者活动
創建於2014-05-11 10:29:55
推送於2024-11-13 01:21:02
最后一次提交2024-06-24 09:08:46
發布數38
最新版本名稱(5.x)1.5.4 (發布於 2024-06-24 09:08:46)
第一版名稱v0.1.0 (發布於 2014-05-26 18:05:38)
用户参与
星數301
關注者數38
派生數227
提交數252
已啟用問題?
問題數145
打開的問題數6
拉請求數128
打開的拉請求數3
關閉的拉請求數45
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?