https://bugs.documentfoundation.org/show_bug.cgi?id=61096
--- Comment #6 from Greg Ross <[email protected]> ---
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>
--
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