mei-demo-c
v0.3.0
Published
[![codecov](https://codecov.io/gh/piumaio/vue-piuma/branch/master/graph/badge.svg)](https://codecov.io/gh/piumaio/vue-piuma) [![Build Status](https://travis-ci.org/piumaio/vue-piuma.svg?branch=feature%2Ftravis-codecov)](https://travis-ci.org/piumaio/vue-p
Downloads
9
Readme
Vue-piuma
Vue component for Piuma Image Optimizer ✌🏻🌉
Install
yarn add https://github.com/piumaio/vue-piuma.git
Usage
import Piuma from 'vue-piuma'
Piuma.serverUrl = 'https://arysol.it/piuma/'
export default {
components: {
PrismEditor,
Piuma
},
// ....
}
<template>
<piuma src="YOUR URL" height="YOUR_HEIGHT" width="YOUR_WIDTH" quality="YOUR_QUALITY" />
</template>
You can also add the following properties
alt
: alternate text for imagetitle
: title of the imageclass
: class attribute for the image
You can also use the composeUrl
function to get a valid Piuma url
Piuma.composeUrl("YOUR_URL", width, height, quality)
width
, height
and quality
are optional
Test
yarn test:unit
More on Piuma
License
MIT © piumaio