Skip to content

zhw2590582/stackBlurToUrl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stackBlurToUrl

The core code comes from here http://www.quasimondo.com/StackBlurForCanvas/StackBlurDemo.html

Install

Install with npm

$ npm install stack-blur-to-url

Or install with yarn

$ yarn add stackBlurToUrl
import stackBlurToUrl from 'stack-blur-to-url';

Or umd builds are also available

<script src="path/to/stack-blur-to-url.js"></script>

Will expose the global variable to window.stackBlurToUrl.

Usage

// Only need image address and blur radius
stackBlurToUrl('./banner.png', 100).then(url => {
    console.log(url);
});

License

MIT © Harvey Zack

Releases

No releases published

Packages

No packages published