html

Image Scaling Problem in Outlook

Last updated: 27.10.2025
Views: 251

When I was composing HTML emails, I encountered the fact that in desktop Outlook (it turns out that someone else uses it) the images were displayed at a strange scale. All the pictures were enlarged. I solved this problem as follows. I added Outlook-specific code to the head section and added some attributes to the html tag. After adding the code, the pictures in desktop Outlook began to display normally.

HTML

<html xmlns="http://www.w3.org/1999/xhtml"
 xmlns:v="urn:schemas-microsoft-com:vml"
 xmlns:o="urn:schemas-microsoft-com:office:office">

<head>
   
  <!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:AllowPNG/>
  <o:PixelsPerInch>96</o:PixelsPerInch>
 </o:OfficeDocumentSettings>
</xml><![endif]-->
</head>

Outlook (especially desktop versions like Outlook 2016, 2019, and Office 365) scales images due to DPI (dots per inch) settings. Many versions of Outlook use Word as a rendering engine, which handles images differently than browsers. If your image looks blurry or resized, it is likely due to Outlook’s automatic DPI scaling (125% or 150% on high-resolution displays).

author
Author: Igor Rybalko
I have been working as a front-end developer since 2014. My main technology stack is Vue.js and WordPress.

Similar posts:

  • How to Create a Drop Down Menu Using only HTML and CSS
    In one of the previous articles, we looked at creating a drop down menu using JavaScript (jQuery). In this article, we will look at how to make a drop down menu using onl...
  • How to Add a Favicon to a Website
    A favicon is a website icon. The easiest way to add it to the page is to put an icon with the name favicon.ico 16x16 pixels in the root of the site. Or set a path by writ...
  • Infinite Rotation with CSS Animation
    An infinitely rotating element on a website is an interesting way to attract the user's attention. It is quite easy to implement such an element using CSS. Here is an exa...

2 responses to “Image Scaling Problem in Outlook”

  1. tlover tonet says:

    What’s Happening i’m new to this, I stumbled upon this I’ve found It positively helpful and it has aided me out loads. I hope to contribute & help other users like its aided me. Great job.

  2. zoritoler imol says:

    Undeniably believe that which you stated. Your favorite justification seemed to be on the net the simplest thing to be aware of. I say to you, I certainly get annoyed while people consider worries that they plainly don’t know about. You managed to hit the nail upon the top and also defined out the whole thing without having side effect , people could take a signal. Will likely be back to get more. Thanks

Leave a Reply

Your email address will not be published. Required fields are marked *