I'm developing web music player. I want to make blurred background for my album covers, and I got these annoying white spaces around the edges. I think that the problem is in algorithm that tries to smoothly upscale an image and gets around 0.5px of white space. But I don't know how to remove that.
.bg-img {
position: absolute;
top: 0;
left: 0;
background-image: url("https://cdn.pixabay.com/photo/2015/04/23/22/00/tree-736885__480.jpg");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
width: 100%;
height: 100%;
filter: blur(5px) brightness(0.4) saturate(2);
}
<div class="bg-img"><div>