Re: Outlook 2007 automatically renaming .GIF image to .PNG
- From: "BenM" <nospam.flexibull@xxxxxxxxxxxxxxxx>
- Date: Tue, 15 Jan 2008 12:05:05 +0900
FWIW,
As a possible reason, I find that Outlook 2007's image compression is turned
on. For some reason I can't turn it off.
1) I create a new temporary message with an inline image in the signature.
2) I right-click select the image, click Picture Tools / Compress Pictures.
3) From Options... I clear Automatically perform basic compression.
4) I click OK / OK and close the message.
If I repeat the procedure, in Step 3, Automatically perform basic
compression is still ticked. The GIF I'm attaching to my message is still
being (it seems) converted to a PNG.
If I create a message in Outlook, the message shows the logo I want to use.
Outlookspy shows my signature's inline image is a GIF with PR_ATTACH_SIZE =
2322.
If I create my message via extended MAPI, it is now a PNG with size 382, and
the image appears blank (correct screen dimensions, but solid white).
My guess is the problem is, therefore, somehow related to automatic
compression.
Any ideas?
Ben
"BenM" <nospam.flexibull@xxxxxxxxxxxxxxxx> wrote in message
news:eG%23XdbnVIHA.6140@xxxxxxxxxxxxxxxxxxxxxxx
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:
- References:
- Prev by Date: Re: MAPI Memory Allocation with MAPIAllocateBuffer and SRowSet
- Next by Date: Re: Outlook 2007 automatically renaming .GIF image to .PNG
- Previous by thread: Outlook 2007 automatically renaming .GIF image to .PNG
- Next by thread: Re: Outlook 2007 automatically renaming .GIF image to .PNG
- Index(es):
Relevant Pages
|