Re: Outlook 2007 automatically renaming .GIF image to .PNG

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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



.



Relevant Pages

  • Re: Outlook 2007 automatically renaming .GIF image to .PNG
    ... When the message was sent, Outlook for some reason replaced the missing ... I create a new temporary message with an inline image in the signature. ... I clear Automatically perform basic compression. ... The GIF I'm attaching to my message is still ...
    (microsoft.public.win32.programmer.messaging)
  • Re: Outlook 2007 signature image size changing
    ... I have seen this problem and another one where Outlook is converting the gif to a png. ... When the email is sent our Exchange server with Antigen on it is deleting the image as a rule in antigen says that png files are vulnerable. ... users that have a shrunken image in the signature. ...
    (microsoft.public.office.misc)
  • Outlook 2007 automatically renaming .GIF image to .PNG
    ... I am experiencing an interesting feature in that Outlook 2007 appears to ... registry, parses the signature, and links in the referenced attached images. ... I created a signature in Outlook 2007, and attached a .gif image to it. ... If it helps, I can attach the html that I submit to PR_HTML, and the html ...
    (microsoft.public.win32.programmer.messaging)
  • Re: Compression reduces free space
    ... I can't explain compression, but maybe I can help with one small part of your query. ... So a thousand 1-byte files have only about 1 KB of data, but they take up about 4 MB of disk space. ... The outlook files are several data files that I created and I compressed them through Outlook rather than through Explorer. ... Instead of INCREASING by 300 MB, my free space has now fallen to 12.7 GB. ...
    (microsoft.public.windows.vista.file_management)
  • Re: Is Defragging a Waste of Time?
    ... the sense that the latter ("file compression") implies that some compression ... Compaction removes redundant data within a file. ... When you delete an email in Outlook Express, it is moved to the Deleted ... So Outlook Express tries to remove these deleted emails physically from ...
    (microsoft.public.windowsxp.help_and_support)