-
Hello, this is a short question and I believe it does not require any code example. Please do read, thankyou! My current workaround is to utilise The issue:I currently resize to a fixed size for all images. I have tried resizing the images to a larger size using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
Have you tried resizing them to a smaller size and then resizing them back? |
Beta Was this translation helpful? Give feedback.
When a browser is displaying an image, it first calculates the size that is required to fill the HTML image tag. Usually this is the same as the image size, but it can be different (e.g. in Discord).
If the image size is different that the size of the HTML image tag, the browser has to resize the image to display it.
The CSS tag is simply telling the browser which scaling method to use instead of the default.
So you cannot change the default scaling method with any image editor, you can only do it by changing the CSS.
The workaround you found with upscaling the image before adding it to a page works by changing how much resizing the browser has to perform to fill the HTML tag (less resiz…