]> git.lyx.org Git - lyx.git/commitdiff
Export external raster graphics as png for XHTML.
authorRichard Heck <rgheck@lyx.org>
Sun, 31 Jul 2016 04:41:23 +0000 (00:41 -0400)
committerRichard Heck <rgheck@lyx.org>
Sun, 31 Jul 2016 05:36:12 +0000 (01:36 -0400)
(cherry picked from commit 681e76086a0b229589fd09cbec64eb8f1063a41b)

lib/external_templates

index 460d951346ab1d3c52854b948c14a0f60c80e14c..07e73dd9534cf45d0578a299f0e96f4389527ee4 100644 (file)
@@ -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