szwork2013 / angular-qiniu-imageview2

AngularJS component for preprocessing image URL from www.qiniu.com (七牛云存储)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AngularJS component for preprocessing image URL from qiniu.com(七牛云存储)

Installation

  1. bower install --save L42y/angular-qiniu-imageview2

  2. including script file provided by dependency angular-qiniu-image into your application

  3. including angular-qiniu-imageview2.js script file provided by this component into your application

  4. adding l42y.qiniu.image and l42y.qiniu.imageview2 as a module dependency to your application

Usage

<img width="200"
     height="400"
     qiniu-image="{{ object.image.url }}"
     qiniu-imageview2
     qiniu-imageview2-mode="1"
     qiniu-imageview2-format="webp,jpg" <!-- use a secondary fallback format -->
     qiniu-imageview2-quality="100">

Changelog

  • 1.0.0

    use qiniu-image instead of qiniu-imageview2 for setting image URL

License

WTFPL

About

AngularJS component for preprocessing image URL from www.qiniu.com (七牛云存储)