soften

1.0.3 • Public • Published

🌫 Soften

For all one of your blurry image needs. Demo

Blur Effect

Install

yarn add soften

Use

const soften = require('soften')
 
soften({ filePath: 'path to image' })
  .then(data => /* do stuff with data */)
  .catch(e => console.error(e))

If using with Gatsby Image

<Img
  placeholderStyle={{ filter: 'blur(20px)' }}
  imgStyle={{ transition: 'opacity .3s' }}
  fluid={{
    ...data // data from soften()
    src: 'url to real image'
  }}
  critical={true}
/>

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i soften

    Weekly Downloads

    0

    Version

    1.0.3

    License

    apache-2.0

    Unpacked Size

    36.4 kB

    Total Files

    6

    Last publish

    Collaborators

    • rametta