commit 9f852516e8351c843256e95fce87f69b7bada30c
Author: Richard Heck <[email protected]>
Date: Sun Jul 31 00:41:23 2016 -0400
Export external raster graphics as png for XHTML.
(cherry picked from commit 681e76086a0b229589fd09cbec64eb8f1063a41b)
---
lib/external_templates | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/lib/external_templates b/lib/external_templates
index 460d951..07e73dd 100644
--- a/lib/external_templates
+++ b/lib/external_templates
@@ -147,6 +147,12 @@ Template RasterImage
ReferencedFile docbook "$$AbsPath$$Basename.eps"
ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
FormatEnd
+ Format XHTML
+ Product "<img src=\"$$AbsOrRelPathMaster$$Basename.png\" />"
+ UpdateFormat png
+ UpdateResult "$$AbsPath$$Basename.png"
+ ReferencedFile xhtml "$$AbsPath$$Basename.png"
+ FormatEnd
TemplateEnd
Template VectorGraphics