Bug 118525 - html document with embeded images sent with empty images
Summary: html document with embeded images sent with empty images
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer Web (show other bugs)
Version:
(earliest affected)
5.4.7.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-03 13:20 UTC by worms
Modified: 2018-07-18 13:40 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
fhtml file generated by thunderbird (503.40 KB, text/html)
2018-07-03 13:22 UTC, worms
Details
html file generated by libreoffice (1.66 KB, text/html)
2018-07-03 13:23 UTC, worms
Details
libreoffice generated image, not included in html file (376.13 KB, image/jpeg)
2018-07-03 13:25 UTC, worms
Details
odt file same as html file (398.22 KB, application/vnd.oasis.opendocument.text)
2018-07-11 06:09 UTC, worms
Details
the ODF .odt exported to XHTML (504.77 KB, application/xhtml+xml)
2018-07-11 12:42 UTC, V Stuart Foote
Details
signature in thunderbird with whtml file propose by V Stuart Foote (92.62 KB, image/jpeg)
2018-07-11 15:55 UTC, worms
Details

Note You need to log in before you can comment on or make changes to this bug.
Description worms 2018-07-03 13:20:59 UTC
Description:
I have created a html file with embeded image as a signature for thunderbird mailer
one version was created directly throw thunderbird (menu save as html file)
one version was  done in libreoffice 
when I write a mail, in the signature
If I choose the thunderbird version, the image is here
If I choose the libreoffice version, the image is not here

it's the same problem that for Bug 115077 - Merge mail wizard send empty images by mail in HTML format 


Actual Results:
No embeded image

Expected Results:
embeded image


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Comment 1 worms 2018-07-03 13:22:22 UTC
Created attachment 143291 [details]
fhtml file generated by thunderbird
Comment 2 worms 2018-07-03 13:23:37 UTC
Created attachment 143292 [details]
html file generated by libreoffice
Comment 3 worms 2018-07-03 13:25:51 UTC
Created attachment 143293 [details]
libreoffice generated image, not included in html file

Perhaps it's the explanation
libreoffice WEB do not put images in the html file but create an image file
Comment 4 V Stuart Foote 2018-07-03 21:34:04 UTC
Any reason you don't just create with Writer and then export to XHTML?
Comment 5 worms 2018-07-07 19:41:13 UTC
The attachment 143292 [details] was created with libreoffice and saved as html
what seems wrong is that image is generated outside the html file (attachment 143293 [details]) the file size is of 1.66 KB so without any embeded image

The attachment 143291 [details] created with thunderbird is of 503.40 KB, with embeded image
Comment 6 Xisco Faulí 2018-07-09 11:13:08 UTC
Hello Worms,
Thanks for reporting the issue.
COuld you please attach the original .ODT file from which you create the .HTMl file ?
Regards
Comment 7 worms 2018-07-09 14:25:16 UTC
Xisco, 
There is no odt file, 
I have created the document, insert image  and save it as html file instead of odt file
It's not a conversion or an export to html file

writer has generated two files : the html file and an image
Comment 8 worms 2018-07-11 06:09:04 UTC
Created attachment 143446 [details]
odt file same as html file

this file as the same contents that the html file, but in the odt file, image is included,
Comment 9 V Stuart Foote 2018-07-11 12:42:45 UTC
Created attachment 143460 [details]
the ODF .odt exported to XHTML

Here is the ODF document for the signature as XHTML with JPEG embedded.

Simply use the Export to XHTML, more likely what you need rather than the HTML 4 transitional the old Save-as filter uses.
Comment 10 worms 2018-07-11 15:55:45 UTC
Created attachment 143476 [details]
signature in thunderbird with whtml file propose by  V Stuart Foote

 V Stuart Foote
I have downloaded your xhtml file, and also created an xhtml file as you suggest
Image is well embeded in the file, 
but 
when I use this file as a signature in thunderbird, result is not good (see the attached jpeg file)

and if it was OK this will not solve the bug 115077   with the same problem of empty image (send a mail in html format throw mail merge wizard) 

Regards
Comment 11 Buovjaga 2018-07-18 10:59:44 UTC
(In reply to worms from comment #10)
> Created attachment 143476 [details]
> signature in thunderbird with whtml file propose by  V Stuart Foote
> 
>  V Stuart Foote
> I have downloaded your xhtml file, and also created an xhtml file as you
> suggest
> Image is well embeded in the file, 
> but 
> when I use this file as a signature in thunderbird, result is not good (see
> the attached jpeg file)

You have left the <?xml version="1.0" encoding="UTF-8"?> element in there. Take it away and it will work.
I verified it works fine in Thunderbird.
Comment 12 worms 2018-07-18 13:40:36 UTC
 Buovjaga
for me it's not SOLVED
if I must display html source to remove <?xml version="1.0" encoding="UTF-8"?>
it's not usable

but as I can generate signature directly in thunderbird, you can close this bug

but the same problem is  for Bug 115077 - Merge mail wizard which send empty images by mail in HTML format