[email protected] wrote on 14/01/2016 23:52:
Ray_Net wrote:
I have just done a test:
With the same picture 75Kb ...
I attached this picture at a plain-text mail - length of this plain-text
mail is 104 KB
I copy/paste this picture in an html mail sent if both format- length of
this html mail is 58,2 KB
Both mails contains only "TEST" in the body.
The subject of the plain-text mail is: PLAIN-TEXT-test jpg attached 75Kb
The subject of the html mail is: HTML-Test
So the biggest part of those two mails is the picture.
75Kb is transmitted with a 104KB plain-text mail.
75Kb is transmitted with a 58.2KB htlm mail.
What is the "magic" feature who construct an html mail smaller than a
plain-text one ?
Attaching a file will encode it such that the recipient can get a file
with the same content as you have on disk.
I assume by "copy/paste this picture in an html mail" you mean you
open the image in some other application, copy from there and paste
into the HTML message so that the image is displayed as part of the
message. In that case, SeaMonkey just gets the image data - it doesn't
know anything about the file on disk that it came from (it may not
even have existed on disk). SeaMonkey will save the image data in some
format to attach to the email, which may or may not be the same format
as your file on disk. Not knowing what format it's used in your case,
it's possible that it either used JPEG with higher compression (lower
quality) than you saved the file, or perhaps the nature of the image
compressed better in PNG and SeaMonkey used that.
Of course, if the image was resized (even if not saved) before
copying, a smaller image would be pasted into SeaMonkey so would
result in a smaller email.
Mark.
It's just a jpeg image attached directly in the plain-txt message and
for the html, the jpg is just opened by Irfanview who had created this
file witth a screen-copy.
This file did not contain anythig else that the pixels .. this is not a
photo so, no EXIF, no IPTC and no COMMENT attached to the picture.
When opened with Irfanview, I did not touche the picture, no crop, no
dimensions changes, no colour characteristic .... UNTOUCHED.
Then I just do in IrfanView the "copy" command followed by the paste
command into the html mail.
In plain-text mail I found:
--------------040508080703080101040301
Content-Type: image/jpeg;
name="Le-Corbusier-Firminy.jpg"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="Le-Corbusier-Firminy.jpg"
/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEB
AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEB
AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/wAAR
CAEyAcEDASIAAhEBAxEB/8QAHgAAAgEFAQEBAAAAAAAAAAAAAAcGAwQFCAkCAQr/xABYEAAB
and in HTML mail I found:
--------------090304070503060208050406
Content-Type: image/jpeg
Content-Transfer-Encoding: base64
Content-ID: <[email protected]>
/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgK
CgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkL
EBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wAAR
CAEyAcEDAREAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAA
I suspect that SM did not encode the same way the same picture.
,
_______________________________________________
support-seamonkey mailing list
[email protected]
https://lists.mozilla.org/listinfo/support-seamonkey