outlook image auto height

Menashe Siman Tov 0 Reputation points
2023-05-28T14:52:56.6166667+00:00

Hey,
We're implementing dynamic signature into outlook (multiple versions) and images are being distorted!
the image is dynamic and we don't know what would be the size so the height is set to auto but some versions of outlook replace the auto with the origin image height (in inches) and completely breaking the email!
how can we overcome this?! how can we leave the image height unset?
the outlook belong to our clients so we don't have access to it and we know only what they told our support team but we sure the issue is related to the auto height.
versions we know of - 365 (2210 build 16.0.15726.20188 32-bit) and Outlook for mac(16.72.3)

Tnx

Screenshot 2023-05-28 at 17.36.32

Outlook | Windows | Classic Outlook for Windows | For business
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Faery Fu-MSFT 19,751 Reputation points Moderator
    2023-05-29T06:24:50.0566667+00:00

    Hi @Menashe Siman Tov ,

    According to my search, for the reasons why the image in the signature becomes blurry/fuzzy/unsharp/smaller/changes in size:

    This usually happens when you are using a picture other than 96dpi.

    When inserting a picture, Outlook will rescale the image as if it was a 96dpi image. This means that if you have a picture of 150dpi with a height off 88px, it will be displayed as an image of 56px high;
    88px/150dpi * 96dpi = 56px

    It even gets worse; upon sending, Outlook will convert and compress (re-render) the images to 96dpi with the new dimensions permanently! This means that all the "detailed" picture information is lost and you'll be sending an image of 96dpi which is 56px high. This is of course a severe and very visible quality loss.

    If your picture is less than 96dpi, then the opposite happens. A picture of 88px high with a dpi of 32 would then result in a 96dpi image of 264px high. So the result will be a very large image (but this time you can resize it back without the image becoming blurry).

    When you use Outlook for Microsoft 365 Version 2007 or later, then you can set an option to prevent the compression of pictures as part of the email contents.

    • File-> Options-> Mail-> Editor Options…-> Advanced-> enable: Do not compress images in file

    a

    Another way is to set signature image to original size, remove px from width and height:

    <img id="_x0000_i1026" src="images/img.jpg" width="120" height="150" />
    

    Links for reference: Image style height and width not taken in outlook mails (Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.)

    Hope above can help you!


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.