Why do images on a website look blurry?

On many sites an uploaded image is sharp, yet it looks blurry on the page. The cause is usually the code.

Resizing by height

If you shrink a long screenshot by height, its width becomes far too small. The right way is to resize by width only.

No upscaling

Stretching a small image always makes it fuzzy.

Compression level

JPG at quality 85–90, or WebP, gives a good balance.

The admin panel of this very site follows exactly these rules.

#rasm#sifat#admin
Blog

More articles