0.5.1 • Published 4 years ago

vue-rokka-image v0.5.1

Weekly downloads
25
License
MIT
Repository
github
Last release
4 years ago

Vue component for rokka images

npm travis bundlephobia zipped bundlephobia minified coveralls

Vue 2.x component for the image processing service rokka.io

If you need a lazy version use vue-rokka-image-lazy

Demo

jsFiddle

Installation

npm i vue-rokka-image

simple use

<rokka-img
  alt="alt"
  title="Title"
  organization="playground"
  stack="dynamic"
  hash="HASH"
  format="jpg"
  filename="image.jpg"
  :operations="[
    {
      name: 'resize',
      options: { mode: 'fill', width: 200, height: 200 }
     
    },
    { 
      name: 'crop', 
      options: { width: 200, height: 200 } 
    }
  ]"
/>

use of picture

This produces two sources because there is an array in optons and postfix.

<rokka-picture
  alt="alt"
  title="Title"
  organization="playground"
  stack="dynamic"
  hash="HASH"
  format="jpg"
  filename="image.jpg"
  :operations="[
    {
      name: 'resize',
      options: { mode: 'fill', width: 200, height: 200 }
     
    },
    { 
      name: 'crop', 
      options: { width: 200, height: 200 } 
    }
  ]"
  
>
  <rokka-source
    :media="'all'"
    :postfix="['1x', '2x']"
    :options="[
      {
        dpr: '1'
      },
      {
        dpr: '2'
      }
    ]"
  />
  <rokka-img />
</rokka-picture>
0.5.1

4 years ago

0.5.0

5 years ago

0.0.19

5 years ago

0.0.20

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.6

5 years ago

0.0.1

5 years ago