We help IT Professionals succeed at work.

Thunderbird embedded jpeg quality sucks due to recompression.  How to fix?

kleencoder asked
Last Modified: 2012-05-05
Amazingly, there is virtually NO info on the net about this.  It is a very serious problem for photographers like me who like to send clients an e-mail with embedded jpeg images.  It is also a big annoyance when sending embedded screen captures....

When you attach a jpeg to a Thunderbird e-mail, the file content and quality is preserved.  However, when you embed the same image (even a screen capture via cut/paste) Thunderbird seems to be recompressing the image at a VERY low quality.  In order that my embedded jpegs appear decent, I have to save them at a very high quality (level 10 in Photoshop).   This is presumably because a level 10 jpeg can withstand further compression rather well.

Try this (as I believe this is related to the same issue): Take a snapshot of a small application window (ALT+PRINT SCRN).  Paste that into a thunderbird e-mail.  You should immediately notice terrible jpeg artificats due to heavy compression.  Paste the same clipboard content into Photoshop and you won't see any loss in quality.

Is there some hidden setting where I can tell Thunderbird to either avoid recompressing the embedded image, or to do so at a much higher quality?

Watch Question

Nick, Once you have embedded the image, have you ever looked at the Properties of it? Double click the image, so Properties pops up, go to the Dimensions tab and make sure Actual Size is selected.  Does that help?

I too a screen shot, Pasted it into an html email and it showed up as 1440*900 which is the resolution of my monitor.

If you have better jpg's and you are embedding them, that Properties->Dimensions should be set to Actual Size and not reducing them if that is what you want.  I'll look around to see if there is a certain Preference or setting somewhere that you can set, but you might have to set the Actual size every time, although mine does that for me by default.

What is yours set to?

Other thing you can try saving them as jpg. zip and attach.....


Mine is set to actual size.  I always resize my images so they appear of reasonable size in the e-mail--600 pixels wide typically.  I offer galleries of ready-to-email (600-pixel-wide) images that clients can use to embed in their emails.

Look at the following example image linked below.  You will see the awful artifacts around the text on the right hand side compared to the source image on the left.   I realize jpegs are not great for text, but this proves the point that Thunderbird is recompressing the image.



Nick, are the recipients of your emails complaining?

I do see what you are saying in that image.  I am wondering if it's not just the TB program displaying itself badly.  Perhaps not utilizing True Type correctly? If you were to email that screenshot you pasted into TB, does the resulting email change resolution at destination or does your monitor just not display TrueType correctly within TB?  

I just tested, it does look like the resulting pasting of jpg's does mess up the looks of the image.

Hmm, I'll try to take a look through the bugzilla tomorrow and see if they are working on this.
This one is on us!
(Get your first solution completely free - no credit card required)

Thanks kleencoder,

glad you found that bug.

As I read through it, it looks like this one is what is causing you issues.
Might want to keep an eye on that one also.

If you would like to get your points back, no objections from me. Just hit the request attention button in your original post.


mtz1of4 yes, I saw that related bug.   Although that might solve the problem, I'm not having an issue with the raw clipboard contents being embedded as a jpeg.  The problem is that when it gets converted to a jpeg by Thunderbird, it gets converted at a very low quality setting (like 50/100 according to bug 384116).  For images that are already in jpeg format, I also don't want them to be recompressed when embedding the jpeg file directly (not from the clipboard).  I believe 384116 covers both of these issues.

Thanks for trying to help.  I'm going to accept my post as the solution.

https://bugzilla.mozilla.org/show_bug.cgi?id=444800 is fixed with a higher quality JPEG ratio setting. Latest Shredder beta will have the issue fixed. However this results in large JPEG file sizes. PNG would have been the optimum solution.

A client of mine who is a photographer first brought this problem to my attention.  I have struggled to find a solution to this issue for some time now, and I have to second the post from Kavlins:  The best way to attack this is to zip and attach.

Zip or RAR or 7-zip or (pick your flavor) is an excellent way of encapsulating your data so that, during handling and transport by various means or across different types of media, the integrity of the data won't be compromised.  In the case of image files, it preserves image quality, prevents further compression or recompression of the image, and preserves metadata such as IPTC or EXIF.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.