lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 9c7e481 2/4: Use a different graphics format


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 9c7e481 2/4: Use a different graphics format for XSL only
Date: Tue, 18 Jul 2017 10:45:40 -0400 (EDT)

branch: master
commit 9c7e481040f1c1e9c6c919ea2228ae59f2361b58
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Use a different graphics format for XSL only
    
    Changed the graphics format from PNG to JPG for XSL only. Reason: a
    particular company logo was rendered incorrectly by apache fop-0.20.5,
    which has builtin support for JPG but prefers an external library for
    PNG--yet does not provide that external library, for licensing reasons:
      http://archive.apache.org/dist/xml/fop/README.html
      | Jimi has been removed for licensing reasons
    Work is under way to replace fop with wxPdfDoc, for which PNG is still
    used (it works perfectly well, and PNG is preferable to JPG for logos).
    Therefore, it would be silly to look into the "jimi" licensing problem
    or to upgrade to a version of fop that doesn't use it, and JPG logos are
    used as a temporary workaround for XSL only.
---
 fo_common.xsl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fo_common.xsl b/fo_common.xsl
index 5681502..3f8a8d7 100644
--- a/fo_common.xsl
+++ b/fo_common.xsl
@@ -750,7 +750,7 @@
 
   <xsl:template name="company-logo">
     <xsl:if test="not($hide-company-logo)">
-      <fo:external-graphic width="121.1pt" height="24.8pt" 
src="company_logo.png"/>
+      <fo:external-graphic width="121.1pt" height="24.8pt" 
src="company_logo.jpg"/>
     </xsl:if>
   </xsl:template>
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]