When I display an image with its original size using HTML and CSS, the image is just perfect (of course).
I expect it to become blurry if I try to display it a size that is larger than the original, but not if the final size is smaller. And what happens: my paintings are blurry under any circumstances.
The problem is that the website and images are responsive, and I just can't create a thumbnail for any size possible, but I still need a result that will be crisp. At least it's not vague.
I searched the web and found this CSS:
image-rendering:-moz-crisp-edges; image-rendering:-o-crisp-edges; image-rendering:-webkit-optimize-contrast; image-rendering:optimize-contrast; image-rendering:crisp-edges; image-rendering:pixelated; -ms-interpolation-mode:nearest-neighbor;
It works, but it gives me the exact opposite: too crispy and artifacts (dots) appear on the images. I tried them all together and separately, but without success. This is all or nothing.
Itβs as if you made a decent picture in Photoshop and pushed the sharpness slider to the maximum. In any case, it is too extreme to be usable.
I use php, jquery, html and css. Is there a solution to my rendering problem using one of them?
Thanks.
source share