I have a 100x100 image and I use <img src='...' width='20' height='20' />
to size it down in the HTML body that will be sent in an email. But the width
and height
attributes do not seem to work on some email clients in Android and the image will just be displayed in its original size.
The fix I came up with is to resize the original image to be 20x20 using photoshop and use the 20x20 image as the image source so that I do not need to rely on the width
and height
attributes. But when I resized the image to be 20x20 using photoshop, the image became very fuzzy. I did some research online, people were saying that the image will always lose some quality when it's sized down.
The thing I do not understand is that the image looks fine in the browser without any quality loss when I use <img src='...' width='20' height='20' />
to resize it. Is there anything special the browser/HTML does when resizing images? (The image is a black and white logo if that makes any difference).