Created attachment 75085 [details] sample doc containing image 1. open the attached doc 2. file -> export -> xhtml 3. open the resulting xhtml in browser, you'll see the broken image The image in the resulting xhtml is using inline base64, however if I manually replace src="data:image/*;base64,<BASE64>" with the output of `base64 file.gif` the image in the xhtml works fine. "Save as html" stores the image externally and works fine. (I use the image saved by the html saver to run base64 with)
Thank you for reporthing this bug, I can reporduce this bug running LibreOffice 4.0.0.3 on Windows 7. I have tryed i out with a other .wmf file and it also was broken. I think it is because of the .wmf files.
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: *Test to see if the bug is still present on a currently supported version of LibreOffice (4.4.1 or later) https://www.libreoffice.org/download/ *If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior *If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System Please DO NOT *Update the version field *Reply via email (please reply directly on the bug tracker) *Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to "inherited from OOo"; 4b. If the bug was not present in 3.3 - add "regression" to keyword Feel free to come ask questions or to say hello in our QA chat: http://webchat.freenode.net/?channels=libreoffice-qa Thank you for your help! -- The LibreOffice QA Team This NEW Message was generated on: 2015-04-18
Bug still exists. LibreOffice 4.4.3.2 OS: Mac OSX 10.10.3
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present on a currently supported version of LibreOffice (5.1.5 or 5.2.1 https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to "inherited from OOo"; 4b. If the bug was not present in 3.3 - add "regression" to keyword Feel free to come ask questions or to say hello in our QA chat: http://webchat.freenode.net/?channels=libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug-20160920
Confirmed the bug still exists. LibreOffice 5.3.0.3 OS: Windows 10 (x64) Some additional notes: - Broken in IE and Edge, but not Firefox or Vivaldi. - Looks to be a problem with the "src="data:image/*;base64" header as if you replace it with "src="data:image/png;base64" all works correctly.
I did some digging, this appears to be an issue in "filter/source/xslt/odf2xhtml/export/common/body.xsl", see line 335: <xsl:text>data:image/*;base64,</xsl:text><xsl:value-of select="office:binary-data"/> When the ODF is converted to XHTML it sets *all* image files to the "image:/*" media type instead of specifying what kind of image it is. A wildcard subtype is not a supported mime type and is therefore completely dependent on the browser being used. Instead I think line 335 should be replace with (may contain errors, first attempt at writing XSLT): <xsl:choose> <xsl:when test="contains(upper-case($filename), '.JPG') or contains(upper-case($filename), '.JPEG')"> <xsl:text>data:image/jpg;base64,</xsl:text><xsl:value-of select="office:binary-data"/> </xsl:when> <xsl:when test="contains(upper-case($filename), '.SVG')"> <xsl:text>data:image/svg;base64,</xsl:text><xsl:value-of select="office:binary-data"/> </xsl:when> <xsl:otherwise> <xsl:text>data:image/png;base64,</xsl:text><xsl:value-of select="office:binary-data"/> </xsl:otherwise> </xsl:choose>
Two updates to the above code, use correct variable for the href name and use ends-with() to ensure not to catches files like "name.jpeg.txt": <xsl:choose> <xsl:when test="ends-with(upper-case($href), '.JPG') or ends-with(upper-case($href), '.JPEG')"> <xsl:text>data:image/jpg;base64,</xsl:text><xsl:value-of select="office:binary-data"/> </xsl:when> <xsl:when test="ends-with(upper-case($href), '.SVG')"> <xsl:text>data:image/svg;base64,</xsl:text><xsl:value-of select="office:binary-data"/> </xsl:when> <xsl:otherwise> <xsl:text>data:image/png;base64,</xsl:text><xsl:value-of select="office:binary-data"/> </xsl:otherwise> </xsl:choose>
Hi all, Image stil missing when tried with LO 5.5.0.0.alpha0+ Build ID: 0e6297932252403883a6057feee488e4ee2bc360 CPU threads: 2; OS: Windows 6.1; UI render: default; TinderBox: Win-x86@39, Branch:master, Time: 2017-05-23_00:14:17 Locale: fr-FR (fr_FR); Calc: CL Jacques
(In reply to Greg Ross from comment #7) > Two updates to the above code, use correct variable for the href name and > use ends-with() to ensure not to catches files like "name.jpeg.txt": > > <xsl:choose> > <xsl:when test="ends-with(upper-case($href), '.JPG') or > ends-with(upper-case($href), '.JPEG')"> > <xsl:text>data:image/jpg;base64,</xsl:text><xsl:value-of > select="office:binary-data"/> > </xsl:when> > <xsl:when test="ends-with(upper-case($href), '.SVG')"> > <xsl:text>data:image/svg;base64,</xsl:text><xsl:value-of > select="office:binary-data"/> > </xsl:when> > <xsl:otherwise> > <xsl:text>data:image/png;base64,</xsl:text><xsl:value-of > select="office:binary-data"/> > </xsl:otherwise> > </xsl:choose> I tried to directly replace image/* by image/jpg, image/png, image/bmp and image/svg directly on resulting file, it still doesn't image. I converted doc file in odt then unzipped it and found a wmf file.
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Dear clkao, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
It's a "works for me" in current 7.2 Alpha. The export uses "src="data:image/png;base64" and the image shows in Firefox 88.0.1 Also works on LO 7.0.4.2 and 7.1.3.2, so must have been fixed for a while. Tested with: Version: 7.2.0.0.alpha0+ / LibreOffice Community Build ID: 6b09276d157abada74e1a4989700139167207778 CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-05-14_04:32:30 Calc: threaded
Issue fixed by https://cgit.freedesktop.org/libreoffice/core/commit/?id=a0647dfdbbea483ed3a8372b7a54e1934dfa1fe5, which fixes 113696 Closing as duplicated *** This bug has been marked as a duplicate of bug 113696 ***