I send email to people whose mailers don't show PNG images correctly, so it seems to them that I sent no images inline at all. In thunderbird, I can't see any options to paste inline images as GIF or JPG instead of PNG. Is there a way to do this?

link|improve this question

feedback

3 Answers

up vote 1 down vote accepted

Look at the Pasting of Images from the Clipboard article on the Mozilla Knowledge Base.

There is a described parameter clipboard.paste_image_type to switch between PNG and JPG.

link|improve this answer
In Thunderbird 3, Go to Tools -> Options -> Advanced (tab) -> Click on "Config Edtor" -> search for "paste", and select the clipboard.paste_image_type option, changing it to 1 – K Robinson Jun 14 '10 at 16:02
feedback

Well, how exactly do you "paste inline images"? If you paste an image file (e.g. drag&drop from a file manager), TB will include it as-is, i.e. JPEG as JPEG, PNG as PNG etc.

Do you want TB to convert PNG images to JPEG/GIF on the fly? Or are you pasting screen shots? On what operating system?

Edit:

I just tested this: Thunderbird will include images in the system clipboard in whatever file format they are, just like images from image files. So the file format depends in TB on which file format the screenshot software used.

If you use Windows's built-in screenshot function (PrtScr/Alt-PrtScr), it will use BMP (up to XP) or JPEG (Vista/Win7). If you use another software like Snagit, you need to configure the file format there ("output file format" or similar).

link|improve this answer
I am pasting screenshots on MS Windows XP. Usually, I have copied the image to the clipboard from SnagIt (a commercial screenshot application--a trial version lasts for 1 month). – K Robinson Mar 4 '10 at 7:08
feedback

When I copy an image from say, Photoshop, and paste it into my message that I'm composing, it converts the image to a PNG.
This is very annoying because some cellphones do not display PNGs, and there isn't any indication that there was an image supposed to be there.
Additionally, the image is not attached to the email, so the receiver is baffled as to what you're talking about.

Thunderbird has, since it's inception, never dealt with pasting inline images correctly.

This is how you do it: Windows XP running Thunderbird 3

C:\Program Files\Mozilla Thunderbird\defaults\pref

  1. Right click composer.js, choose Edit (or open it in Notepad).
  2. Go to the bottom of the file and find clipboard.paste_image_type

    // Pasting images from the clipboard, order of encoding preference:
    // JPEG-PNG-GIF=0, PNG-JPEG-GIF=1,GIF-JPEG-PNG=2
    pref("clipboard.paste_image_type", 1);

  3. Replace the 1 in pref("clipboard.paste_image_type", 1); with a 0.
  4. Save the file, restart Thunderbird.
  5. Thats it.

Now when you paste your copied image into the email it works! You will get something like mozscreenshot_1.jpg at quality 95 embedded in your email.

link|improve this answer
1  
You do not need to edit the js file. In Thunderbird 3, Go to Tools -> Options -> Advanced (tab) -> Click on "Config Edtor" -> search for "paste", and select the clipboard.paste_image_type option, changing it to 1. By the way, this was already covered in the first answer I accepted--if you follow the link and look at the 4th bullet point. Still, this answer makes it more explicit. – K Robinson Jun 14 '10 at 16:02
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.