M-J-Robbins / good-email-code

Email code resources website
http://www.goodemailcode.com
MIT License
91 stars 8 forks source link

Remove <o:AllowPNG/> ? #10

Closed hteumeuleu closed 4 years ago

hteumeuleu commented 4 years ago

In your Email Template code, I notice you have the <o:AllowPNG/> declaration. Have you ever noticed it making any difference at rendering?

I tried to research it a few years ago. And Microsoft's official documentation says:

Specifies whether PNG (Portable Network Graphics) is used as an image format on a Web page. If <o:AllowPNG/> is specified, PNG format is used. As opposed to any other file format, images saved in PNG might improve in quality and their file size might reduce (decreasing download time) when targeted browsers support the PNG format.

My understanding is that this makes a difference when saving a Word document as HTML. But not for rendering HTML in Word/Outlook. I've removed this from all my templates a few years ago, I use PNG all the times, and never had a problem with it.

See also:

M-J-Robbins commented 4 years ago

Nice, good catch.
I've removed it 👍