Gentlepeople,
Using fop trunk.
When I include an image using external-graphic (tried both
jpeg and gif) the image displays just fine when rendering to pdf. When
rendering to png however the image looks much worse (not sure how to describe
it, it looses contrast or something like that).
When I do the exact same thing but use batik to include the
image it looks just fine.
Anyone any thoughts on this?
Thanks,
Peter
PS Here is an example
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master
master-name="master" page-height="200pt" page-width="200pt">
<fo:region-body/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="master">
<fo:flow flow-name="xsl-region-body">
<fo:block-container absolute-position="fixed" left="10pt" top="10pt" width="40pt" height="20pt">
<fo:block linefeed-treatment="ignore" font-size="0">
<fo:instream-foreign-object width="40pt" height="20pt">
<svg:svg xmlns:svg="http://www.w3.org/2000/svg" width="40" height="20">
<svg:image xmlns:xlink="http://www.w3.org/1999/xlink"
width="40"
height="20"
preserveAspectRatio="none"
xlink:href="">"http://xmlgraphics.apache.org/images/apache-xml-graphics.gif"
xmlns:svg="http://www.w3.org/2000/svg"/>
</svg:svg>
</fo:instream-foreign-object>
</fo:block>
</fo:block-container>
<fo:block-container absolute-position="fixed" left="10pt" top="50pt" width="40pt" height="20pt">
<fo:block linefeed-treatment="ignore" font-size="0">
<fo:external-graphic
scaling="non-uniform"
src="">"url(http://xmlgraphics.apache.org/images/apache-xml-graphics.gif)"
content-width="scale-to-fit"
width="40pt"
content-height="scale-to-fit"
height="20pt"/>
</fo:block>
</fo:block-container>
</fo:flow>
</fo:page-sequence>
</fo:root>
|
- Quality of included image degrades when png rendering is u... Peter
-