有没有办法将 Apache 配置为忽略存储在图像文件中的 DPI 元数据并改用特定值?或者可能是可以在<fo:external-graphic>
元素上使用的属性?
图像使用以下方式呈现:
<fo:external-graphic src="{concat('url(', string(@href), ')')}"
xsl:use-attribute-sets="image">
<xsl:call-template name="imageSizeAttributes"/>
<xsl:call-template name="idAttribute"/>
<xsl:call-template name="roleAttribute"/>
</fo:external-graphic>
我发现源图像的最佳 DPI 值为 110。如果我以 110 DPI 保存图像,那么它们会完美呈现。如果可能的话,我想简单地覆盖它,以便不使用存储在图像文件中的 DPI 值。
我尝试将以下内容添加到“.xconf”文件中,但这似乎根本没有任何区别:
<source-resolution>110</source-resolution>
我还尝试设置极值(0、72、200、300、600)以查看它们是否有任何影响,但它们没有。