Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Don't blur images when magnified

This is not a answer which will get one right answer, but I'll ask it anyways:

Is it possible to maginify or enlarge an image so that it does not blur?

For example this should not happen, the pixels should not blur into each other, but should magnify with enlarged block pixels. Is there something like maginification: block; or anything like that in CSS or HTML or maybe a JS polyfill?

like image 948
aNewStart847 Avatar asked Apr 03 '13 18:04

aNewStart847


People also ask

Is it possible to maginify an image so that it does not blur?

Is it possible to maginify or enlarge an image so that it does not blur? For example this should not happen, the pixels should not blur into each other, but should magnify with enlarged block pixels. Is there something like maginification: block; or anything like that in CSS or HTML or maybe a JS polyfill?

Why is my picture blurry?

It can't detect blurriness, grain, pixellation, or too-dark images). One common cause of blurry images is camera shake. You can avoid that issue by stabilizing your camera with a tripod and using the timer setting on your camera or a remote control shutter release (pressing the button can lead to camera shake).

How to avoid grainy or blurry images?

How to avoid grainy, blurry, or pixelated images 1. Avoid a high ISO setting on your camera. When taking photographs, make sure your camera's ISO setting isn't too high. 2. Avoid using low resolution images. While low resolution images might look fine on your monitor, depending on how big... 3. ...

How do I unblur a picture?

Unbluring a picture is simple and fast using Fotor’s AI image unblurring tool. Firstly, upload a blurry picture to Fotor. Then click the “Super-Resolution Enlarger” tool, and Fotor will start unblurring the picture automatically. Within seconds, you’ll have a high quality, crystal-clear image that’s ready to download and share.


2 Answers

image-rendering: pixelated;

But it's not supported yet:

https://developer.mozilla.org/en-US/docs/CSS/image-rendering#Browser_compatibility

these currently work, but only for downscaling:

    image-rendering: -moz-crisp-edges;         /* Firefox */
    image-rendering:   -o-crisp-edges;         /* Opera */
    image-rendering: -webkit-optimize-contrast;/* Webkit (non-standard naming) */
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;  /* IE (non-standard property) */
like image 159
MicronXD Avatar answered Sep 30 '22 05:09

MicronXD


It depends on the resolution of the image. If you enlarge the image more than what the resolution is, it will blur. One workaround is to use a very large image, but display it as a smaller image. So when you zoom in, it maintains it's quality (up to a point). This jQuery demo show's what I'm trying to explain:

http://webdesignfan.com/demos/imagezoom.html - image display size: 640x511

http://webdesignfan.com/demos/image.jpg - actual image size: 1712x1368

This example allows you to zoom by over 2.5 times without blurring.

Hope this helps. Thanks.

like image 21
Developer Esparza Avatar answered Sep 30 '22 04:09

Developer Esparza