Home  >  Q&A  >  body text

javascript - Why are the pixels around the image blurred when it is loaded into the browser?

I made a picture of 1000px*1000px, the first pixel has a fill color, and it looks normal after zooming in under Windows
After the front-end requests this picture, set the style: width: 40000px; height: 40000px; after zooming in many times , the pixels are very blurry
I think no matter how you zoom in, what should be presented should always be a uniform color block with obvious boundaries
Is there a way to make the picture perfectly present after it is zoomed in on the browser? What about the content of the pixel?

高洛峰高洛峰2733 days ago528

reply all(3)I'll reply

  • 为情所困

    为情所困2017-05-19 10:36:48

    The browser has a blur algorithm specifically for image enlargement. It seems unreasonable that your image only has one pixel, but for ordinary images, this kind of blur processing can make the enlarged image closer to the original image, rather than blurring the image as soon as it is enlarged. Become a mosaic

    reply
    0
  • 阿神

    阿神2017-05-19 10:36:48

    Is it a problem with the image format

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-05-19 10:36:48

    image-rendering: pixelated;

    reply
    0
  • Cancelreply