K
K
keche2017-08-13 17:34:14
css
keche, 2017-08-13 17:34:14

How to make an image sharper when scaling it?

If you zoom in (reduce the size of a large image, or enlarge a small image), it becomes blurry. Here, for example, link , the image is adapted without strong blur, which is better compared to standard scaling.
Are there any css methods or js plugins that can solve the problem with blurry images when zooming?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Sergey Sergey, 2017-08-13
@hahenty

CSI does not share its technology.
In reality, you need to prepare several images in different sizes. And styles or scripts from the list by size will choose the appropriate one.

X
xmoonlight, 2017-08-13
@xmoonlight

<img src="clock-demo-thumb-200.png" 
      alt="Clock" 
      srcset="clock-demo-thumb-200.png 200w, clock-demo-thumb-400.png 400w"
      sizes="(min-width: 600px) 200px, 50vw">

D
Dmitry Gadzhiev, 2017-08-13
@gds1

Maybe it's worth showing the image in one resolution before scaling, and then in another?

A
Ankhena, 2017-08-14
@Ankhena

Use tag <picture>or media conditions or SVG
https://webref.ru/html/picture

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question