<img class="border" src="https://cdn.baobangdong.cn/react.png" alt="" />

<img src="https://cdn.baobangdong.cn/react.png" alt="" />
img {
	width: 200px;
	object-fit: cover;
}

.border {
	filter: drop-shadow(1px 1px 0 black) drop-shadow(-1px -1px 0 black)
		drop-shadow(1px -1px 0 black) drop-shadow(-1px 1px 0 black);
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.