JSFiddle - React, Tailwind, and code Playground
by badabou
HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/stackblur-canvas/2.5.0/stackblur.min.js"></script>
<p>StackBlur does not work properly when there is an alpha channel in the image.</p>
<p>There is a white outline in the result.</p>
<p>Blurred image:</p>
<canvas id="blurred-canvas" width="376" height="166" style="background:#ff00ff;"></canvas>
<p>Original image:</p>
<img id="original-image" style="background:#ff00ff;"...
JavaScript
StackBlur.image("original-image", "blurred-canvas", 2, true);