Printing email with reduced image size?

User Help for Mozilla Thunderbird
Post Reply
wannab1
Posts: 3
Joined: July 28th, 2022, 8:01 am

Printing email with reduced image size?

Post by wannab1 »

I receive emails with large images attached and would like to print those emails with the image sized reduced, normally it would all fit on 1 page with text. I know how to reduce everything and print but then the text is unreadable.
User avatar
LIMPET235
Moderator
Posts: 39961
Joined: October 19th, 2007, 1:53 am
Location: The South Coast of N.S.W. Oz.

Re: Printing email with reduced image size?

Post by LIMPET235 »

Hi,
Not sure but can you highlight the image (right click) & save as....?
Progress from there...
[Ancient Amateur Astronomer.]
Win-10-H/64 bit/500G SSD/16 Gig Ram/450Watt PSU/350WattUPS/Firefox-115.0.2/T-bird-115.3.2./SnagIt-v10.0.1/MWP-7.12.125.

(Always choose the "Custom" Install.)
wannab1
Posts: 3
Joined: July 28th, 2022, 8:01 am

Re: Printing email with reduced image size?

Post by wannab1 »

LIMPET235 wrote:Hi,
Not sure but can you highlight the image (right click) & save as....?
Progress from there...
yes I can.
wannab1
Posts: 3
Joined: July 28th, 2022, 8:01 am

Re: Printing email with reduced image size?

Post by wannab1 »

still hoping there is a solution I'm overlooking. We get a lot of emails with large images and it would be a huge time saver to be able to print hit print and it automatically downsize to fit on the page with the text.
morat
Posts: 6437
Joined: February 3rd, 2009, 6:29 pm

Re: Printing email with reduced image size?

Post by morat »

I was able to reduce the size of the attached images using the userContent.css file. I printed the message to a .pdf file as a test.

Code: Select all

/* Thunderbird userContent.css */

div.moz-attached-image-container > img.moz-attached-image {
  max-width: 25% !important;
}
http://kb.mozillazine.org/UserContent.css

Remember to set the toolkit.legacyUserProfileCustomizations.stylesheets preference to true, then restart.

---

I was able to reduce the size of the first attached image using the error console.

Code: Select all

content.document.querySelectorAll("div.moz-attached-image-container > img.moz-attached-image")[0].setAttribute("width", "25%");
note: use 0 for first attached image, use 1 for second attached image, use 2 for third attached image

---

You can create keyboard shortcuts that execute custom commands with the tbkeys addon.

More info: http://forums.mozillazine.org/viewtopic ... 48&t=72994

---

There is a "resize the images too large" option in the PrintingTools NG addon.

PrintingTools NG
http://addons.thunderbird.net/thunderbird/addon/987840
Post Reply