mei-demo-piuma
TypeScript icon, indicating that this package has built-in type declarations

0.5.0 • Public • Published

Vue-piuma

codecov Build Status

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 image
  • title: title of the image
  • class: 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

Piuma Image Optimizer

License

MIT © piumaio

forthebadge

Readme

Keywords

Package Sidebar

Install

npm i mei-demo-piuma

Weekly Downloads

1

Version

0.5.0

License

MIT

Unpacked Size

269 kB

Total Files

15

Last publish

Collaborators

  • meilincheng