HTML Images: Keep Aspect Ratio and Limit Dimensions
A tip on using the img tag in HTML to keep the aspect ratio and also put a maximum limit on the width and height
This is an example which uses the max-width and max-height to both maintain the aspect ratio of im1.jpg and also put limits on the maximum width and height:

<img style="max-width:48px;max-height:48px" src=im1.jpg>

Media Lab Overview
LIACS Homepage
MM Conf
ACM Multimedia
Science Direct
IEEE Library
LIACS Publications
ACM Digital Library