Bug 78894 - Embedded image in HTML document displays base64 text after 64484 bytes
Summary: Embedded image in HTML document displays base64 text after 64484 bytes
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2.4.2 release
Hardware: Other Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectRequest, regression
Depends on:
Blocks:
 
Reported: 2014-05-19 08:44 UTC by 0owendk.freedesktopbug
Modified: 2015-12-17 08:11 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
the html file created with 4.2 (177.72 KB, text/html)
2014-05-28 13:03 UTC, Yousuf Philips (jay) (retired)
Details
how it looks when you open the html file in 4.2.4 (346.80 KB, image/png)
2014-05-28 13:04 UTC, Yousuf Philips (jay) (retired)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 0owendk.freedesktopbug 2014-05-19 08:44:06 UTC
If one embeds an large (>48k) image in an HTML document as follows:

$ libreoffice

Create New Writer Document
Insert image from file.
Save as something.html
Use HTML Document(Writer) Format
Quit LibreOffice

$ libreoffice something.html

The image appears much smaller than the original and in the wrong aspect ratio and a big pile of base64 text appears after it in the Writer main window.  Further investigation suggests the base64 text starts appearing at 64484 bytes into the base64-encoding of the image.

(S)
Comment 1 Joel Madero 2014-05-21 01:16:18 UTC
Please upload a 48 meg file to somewhere (maybe google drive?). I just dug through my images and the largest file I have is 28 megs and that was a professional photograph taken at very high resolution so - we'll need an image from somewhere ;) Marking as NEEDINFO. Once you get us an image, mark the bug as UNCONFIRMED and I'll check it out. Thanks!
Comment 2 0owendk.freedesktopbug 2014-05-21 08:52:37 UTC
> Please upload a 48 meg file to somewhere (maybe google drive?). I just dug
> through my images and the largest file I have is 28 megs and that was a
> professional photograph taken at very high resolution so - we'll need an
> image from somewhere ;) Marking as NEEDINFO. Once you get us an image, mark
> the bug as UNCONFIRMED and I'll check it out. Thanks!

It's only 48_k_ or greater that's needed to trigger the bug.

http://www.damtp.cam.ac.uk/user/osd1000/fdoscreen.png

is a nice simple image which I've just used to reproduce the problem.
Comment 3 Yousuf Philips (jay) (retired) 2014-05-28 13:01:30 UTC
Confirmed in Linux Mint in 4.2.4. This doesnt happen in 4.1 as images are not saved in base64 embeded into the file and this doesnt happen in 4.3.
Comment 4 Yousuf Philips (jay) (retired) 2014-05-28 13:03:49 UTC
Created attachment 100030 [details]
the html file created with 4.2
Comment 5 Yousuf Philips (jay) (retired) 2014-05-28 13:04:42 UTC
Created attachment 100031 [details]
how it looks when you open the html file in 4.2.4
Comment 6 Joel Madero 2014-05-29 03:18:07 UTC
Looks like this has been fixed in the mean time - 4.3 beta1 opens fine. 

marking as WFM

You should see it resolved in 4.2.5 but worst case it's definitely resolved in 4.3 which will be releasing in not too long :-D
Comment 7 Robinson Tryon (qubit) 2015-12-17 08:11:03 UTC
Migrating Whiteboard tags to Keywords: (bibisectrequest)
[NinjaEdit]