[email protected] wrote on 15/01/2016 22:18:
Ray_Net wrote:
[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
So that will be attached exactly as it exists on disk.
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.
So SeaMonkey only gets the image data. It knows nothing of the
original file on disk, so compresses it to JPEG using some quality
setting etc. which may not be the same as used for the original image.
It also won't have any metadata which may have been included in the
original JPEG file (e.g. a preview thumbnail).
In plain-text mail I found:
<cut>
and in HTML mail I found:
<cut>
I suspect that SM did not encode the same way the same picture.
How do you expect SeaMonkey to know how the original file was encoded?
It doesn't know where that file is, nor whether an image pasted from
the clipboard even exists as a file. Using Insert > Image > Choose
File /might/ lead to the file being included exactly as on disk,
though I wouldn't be surprised if it still does some optimisation to
reduce the size for sending by email.
If you want the file to arrive with the exact same content as it has
on your disk, attach it (whether to a plain text or HTML email). If
the intention is only that the image is included as part of the email
body (which is what it sounds like you're doing with the HTML email),
is it a problem that it's not compressed exactly the same as the
original file on your disk?
Mark.
In both way, SM is obliged to manipulate the data ...
With an attachment, this not an exact copy from disk to mail, because in
the mail, all the data must be transformed in a big string composed of
"printable" characters. But at the reception pc, If we do a save as ...
the disk sended file and the disk received file will be exactly the same.
With a copy/paste, this is the same except that SM perform a compression
first. so the disk sended file and the disk received file will be different.
I have done the test:
- Saving the received picture of the inclusion in the html mail gives me
a 42KB picture.
- Saving the received picture of the attachment in the plain-txt mail
gives me a 74,8KB picture - same length as the original file on disk.
The last question could be: How can we modify a parameter in SM in such
a way that we can modify the compression force when inserted in an html
mail ?
_______________________________________________
support-seamonkey mailing list
[email protected]
https://lists.mozilla.org/listinfo/support-seamonkey