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

Julien Nabet <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #9 from Julien Nabet <[email protected]> ---
(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.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to