Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

@amory/image-sqip

2018.5.11-6 • Public • Published

Gatsby SQIP plugin

Generates vectorized primitive version of images to be used as preview thumbnails.

✋ Usage

GraphQL

image {
  sqip(numberOfPrimitives: 3, blur: 0),
  resolutions {
    ...GatsbyContentfulResolutions_withWebp_noBase64
  }
}

React

Pure HTML

Coming soon. Doing some preparations first.

Gatsby Image

const Img = require(`gatsby-image`)
 
<Img
  resolutions={{
    ...image.resolutions,
    base64: image.sqip
  }}
/>

install

npm i @amory/image-sqip

Downloadsweekly downloads

154

version

2018.5.11-6

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability