Skip to content

revolunet/react-imageblurloader

 
 

Repository files navigation

react-imageblurloader

npm license github-issues

nodei.co

Show a nice blurry preview while your images are loading.

demo

Install

npm install -S react-imageblurloader

Usage

<ImageBlurLoader
  src={ image.url }
  preview='data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEU...'
  width={ 1024 }
  height={ 768 }
/>

Demo

npm start then visit http://127.0.0.1:3000

Generating previews

Using ImageMagick : convert input.jpg -resize 20x20 -quality 70 preview.jpg

Then get the base64 : base64 preview.jpg

About

Image loader using blur.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 91.7%
  • HTML 8.3%