[Libreoffice-bugs] [Bug 61096] FILESAVE: XHTML export of doc with image broken

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Jun 15 21:09:22 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=61096

Julien Nabet <serval2412 at yahoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |serval2412 at yahoo.fr

--- Comment #9 from Julien Nabet <serval2412 at yahoo.fr> ---
(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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170615/5970243c/attachment.html>


More information about the Libreoffice-bugs mailing list