Outlook 2007 automatically renaming .GIF image to .PNG
- From: "BenM" <nospam.flexibull@xxxxxxxxxxxxxxxx>
- Date: Mon, 14 Jan 2008 15:29:46 +0900
I am experiencing an interesting feature in that Outlook 2007 appears to
rename my .gif attachment to .png, making the content undisplayable. The
same code works without issue against Outlook 2003. Does anyone know if this
is intentional and documented?
Some (abbreviated!) background, for the curious:
I have written a module that tests so far perfectly against Outlook 2003 and
non-Outlook systems. The module finds the users signature files via the
registry, parses the signature, and links in the referenced attached images.
I am now testing this on a shiny new machine with Office 2007 installed as
part of tests against other versions of Office.
I created a signature in Outlook 2007, and attached a .gif image to it.
My program found the signature file, parsed it, attached the referenced .gif
image, and then assembled the combined message and signature content in the
PR_HTML message property.
The result:
* The image doesn't display (at all) in the sender's Outlook, I just get a
small X (image missing) icon.
* In gmail, it shows the image as a white rectangle, and an attachment with
the name image001.png.
* In the receiving Outlook (2003), the attachment doesn't appear (hidden)
and a white rectangle appears in the message where it should have been.
* In outlookspy, I see that the CID in PR_ATTACH_CONTENT_ID and PR_HTML
match, however they have been changed (they were something like
image001.gif@xxxxxxxxxxxxxxxx and are now something like
image001.png@xxxxxxxxxxxxxxxx where 9 is my home-made uid, and 8 is
outlook's).
* If I send a test message through Outlook, the message arrives at the
destination as a .GIF and is displayed correctly.
If it helps, I can attach the html that I submit to PR_HTML, and the html
that Outlook seems to have changed it to.
Any thoughts will be much appreciated.
Cheers,
Ben
.
- Follow-Ups:
- Prev by Date: PR_CLIENT_SUBMIT_TIME
- Next by Date: Re: Questions about behavior in Outlook 2007
- Previous by thread: PR_CLIENT_SUBMIT_TIME
- Next by thread: Re: Outlook 2007 automatically renaming .GIF image to .PNG
- Index(es):
Relevant Pages
|