Results 1 to 14 of 14
  1. #1
    2 Star Lounger
    Join Date
    Dec 2002
    Location
    Jackson, TN
    Posts
    180
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Saves Pictures Only in BMP (XP Pro SP2)

    When I view an email with a picture in Outlook and right click it to save, it saves only in BMP format. I have cleaned out the cash in IE7 but that didn't help. What do I need to do so I can save in jpg and/or gif?

    Ray

  2. #2
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Salt Lake City, Utah, USA
    Posts
    9,508
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: Saves Pictures Only in BMP (XP Pro SP2)

    Usually that means the graphic was sent to you as a BMP. Outlook doesn't have "on-the-fly" conversion capabilities for graphic files being saved to Disk from a message. I usually use Paint or IrfanView to change the format after I save the file. (Later versions of Paint handle a number of formats and have very efficient file compression.)
    -John ... I float in liquid gardens
    UTC -7ąDS

  3. #3
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Saves Pictures Only in BMP (XP Pro SP2)

    I came across this How To but am not in a position to test it at the moment. Does your experienced eye see it as workable?

  4. #4
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Salt Lake City, Utah, USA
    Posts
    9,508
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: Saves Pictures Only in BMP (XP Pro SP2)

    Yes, but I'm not sure the OP will see it that way. I confess that I never assume that messages are HTML, as so many users do now, and I use my VBA attachment manager to pull embedded graphics, so I realize that I missed the point of the OP's question.

    From a code perspective there's no handling of duplicate file names, an existing file of the same name will be overwritten, and no record is kept in the message of it original embedded contents.
    -John ... I float in liquid gardens
    UTC -7ąDS

  5. #5
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Saves Pictures Only in BMP (XP Pro SP2)

    I thought you had this fixed, per your earlier thread: [topic=623625]Downloading Pictures (XP Pro (SP2))[/topic].

    Added: Just some cross-references from a Lounge search so I don't have to run it again...

    • Workaround #1: Forward to account with web mail access, save from browser ([topic=404068]Saving graphic files (Outlook 2003)[/topic])
    • Workaround #2: Import to Outlook Express, save from OE ([topic=325923]Saving a GIF (Outlook 2002)[/topic])
    • I can't remember what my "SaveEmbeds" macro does in post 162,638

  6. #6
    2 Star Lounger
    Join Date
    Dec 2002
    Location
    Jackson, TN
    Posts
    180
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Saves Pictures Only in BMP (XP Pro SP2)

    John:

    today I received an email and five of them were gif files that had movement. When I tried to save them, only the BMP format showed up. I usually do use IrfanView to convert them to jpg, but it doesn't work with gif once they have been saved to BMP.

  7. #7
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    23,572
    Thanks
    5
    Thanked 1,057 Times in 926 Posts

    Re: Saves Pictures Only in BMP (XP Pro SP2)

    Joe

  8. #8
    2 Star Lounger
    Join Date
    Dec 2002
    Location
    Jackson, TN
    Posts
    180
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Saves Pictures Only in BMP (XP Pro SP2)

    jscher2000:
    Thanks a million. Your original would have helped, but somehow I got distracted and went another route. Mark it down as stupid. This one works. Thanks again. You guys are great.

  9. #9
    2 Star Lounger
    Join Date
    Dec 2002
    Location
    Jackson, TN
    Posts
    180
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Saves Pictures Only in BMP (XP Pro SP2)

    joeperez and Leif:

    I went to the "How To" link and did what it stated. However, when I tried to run the macro, I received an error menu. It stated that I had not set anything in the = Nothing lines.

    Set objAttachment = Nothing
    Set colAttachments = Nothing
    objCurrentItem.Close (olDiscard)
    Set objCurrentItem = Nothing

    I'm sorry that I am so computer illiterate, but what is supposed to go in those four lines?

  10. #10
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Saves Pictures Only in BMP (XP Pro SP2)

    Ray, it's hard to guess without a more specific quotation of the error message. Usually, the lines that end with = Nothing should never cause an error.

    I've taken a closer look at my old code in post 162,638 and I think it should work for you. It make a rude beep when there are only linked images, but hopefully that's okay until I can tweak it.

  11. #11
    2 Star Lounger
    Join Date
    Dec 2002
    Location
    Jackson, TN
    Posts
    180
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Saves Pictures Only in BMP (XP Pro SP2)

    jscher2000:

    The error messages was, "Object variable or With block variable not set" This error message had behind it the Visual Basic Editor with the following macro:

    Sub SaveAttachment()
    Dim objCurrentItem As Outlook.MailItem
    Dim colAttachments As Outlook.Attachments
    Dim objAttachment As Outlook.Attachment

    Set objCurrentItem = Application.ActiveInspector.CurrentItem
    Set colAttachments = objCurrentItem.Attachments
    Set strFolderpath = CreateObject("WScript.Shell")

    For Each objAttachment In colAttachments
    objAttachment.SaveAsFile (strFolderpath.SpecialFolders("Desktop") & "" & objAttachment.FileName)
    Next

    Set objAttachment = Nothing
    Set colAttachments = Nothing
    objCurrentItem.Close (olDiscard)
    Set objCurrentItem = Nothing

    I'll look at your attachment and try it.

    End Sub

  12. #12
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Saves Pictures Only in BMP (XP Pro SP2)

    The macro will only run correctly if you have an e-mail open. It's not sufficient to select it in the Inbox folder (or wherever it is).

  13. #13
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Saves Pictures Embedded in HTML Messages

    <P ID="edit" class=small>(Edited by jscher2000 on 18-Jan-07 19:12. Added more context.)</P>All of the above macros work on the principle that pictures embedded in the body of an HTML message -- in other words, pictures that are not pulled in using links -- are treated as file attachments under the covers. Mine displayed a little dialog listing all of the attachments so you could pick the ones you want to save, and where you want to save them.

    I've attached an updated version (the code is in a ZIP archive embedded in a Word document). Principal changes are as follows:
    <UL><LI>You can save from a message selected in the Inbox (e.g., if you are using the Reading page) without opening the message
    <LI>Save path is selected using the Windows Shell BrowseForFolder dialog rather than typing in the path
    <LI>New Reset button lets you clear accidental selections in the listbox
    <LI>Slightly better error messages[/list]The Word document has installation directions and a screen shot. Hope this helps.
    Attached Files Attached Files

  14. #14
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Saves Pictures Embedded in HTML Messages

    Works well - thank you!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •