Set image size for attachment?

User Help for Mozilla Thunderbird
Post Reply
Kerrith1
Posts: 24
Joined: November 3rd, 2017, 5:25 pm

Set image size for attachment?

Post by Kerrith1 »

I receive email images from my security camera. They arrive as an attachment and the image is automatically displayed in my TB message window. The problem is the image fills the entire message pane and so I can't see the bottom half. Is there a way to set the default size of an image in an attachment?

Thank, Kerry
Windows 10 Pro
TB 52.5.2 (32-bit)
User avatar
LIMPET235
Moderator
Posts: 39956
Joined: October 19th, 2007, 1:53 am
Location: The South Coast of N.S.W. Oz.

Re: Set image size for attachment?

Post by LIMPET235 »

Hi,
I'm not sure that Thunderbird can resize received attachments, but someone may know if it's possible.
As you may know, there are extensions & programs for reducing images before sending but you don't need this.
All the ones I've found are for reducing before sending.

Have you checked the cameras options to see if the images can be resized/reduced there before sending to Thunderbird?
[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.)
User avatar
DanRaisch
Moderator
Posts: 127231
Joined: September 23rd, 2004, 8:57 pm
Location: Somewhere on the right coast

Re: Set image size for attachment?

Post by DanRaisch »

Limpet's right. Thunderbird just displays what is sent to it and has no built in functionality to resize or otherwise modify the display of such images.
morat
Posts: 6421
Joined: February 3rd, 2009, 6:29 pm

Re: Set image size for attachment?

Post by morat »

Try something like:

Code: Select all

/* Thunderbird userContent.css */

img.moz-attached-image[shrinktofit] {
  width: 100px !important;
  height: auto !important;
}
http://kb.mozillazine.org/UserContent.css

Reference
http://dxr.mozilla.org/comm-esr52/sourc ... geBody.css

Edit:

If the shrinktofit feature is disabled or not applicable, then try this:

Code: Select all

/* Thunderbird userContent.css */

img.moz-attached-image {
  width: 100px !important;
  height: auto !important;
}
Similar thread: http://forums.mozillazine.org/viewtopic ... &t=2878883
Last edited by morat on January 3rd, 2018, 8:04 am, edited 1 time in total.
Kerrith1
Posts: 24
Joined: November 3rd, 2017, 5:25 pm

Re: Set image size for attachment?

Post by Kerrith1 »

Thanks all. I'll try your idea morat.
User avatar
LIMPET235
Moderator
Posts: 39956
Joined: October 19th, 2007, 1:53 am
Location: The South Coast of N.S.W. Oz.

Re: Set image size for attachment?

Post by LIMPET235 »

LIMPET235 wrote:Hi,
Have you checked the cameras options to see if the images can be resized/reduced there before sending to Thunderbird?
Did you check the camera's options yet?
Might be a simple fix?
[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.)
Kerrith1
Posts: 24
Joined: November 3rd, 2017, 5:25 pm

Re: Set image size for attachment?

Post by Kerrith1 »

Thanks LIMPET235,

The "Camera Live" application has different options, one of which displays the image smaller. I can still dbl click the image to make it fill up the entire message window. Thanks.

I tried adding a userContent.css file but it didn't work.
User avatar
LIMPET235
Moderator
Posts: 39956
Joined: October 19th, 2007, 1:53 am
Location: The South Coast of N.S.W. Oz.

Re: Set image size for attachment?

Post by LIMPET235 »

You're welcome...

Image
[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.)
Post Reply