2022-11-26 03:28:34PM
This commit is contained in:
parent
b1ed73a615
commit
d8e33fbb59
1 changed files with 6 additions and 6 deletions
|
|
@ -206,14 +206,14 @@ func compile(ctx context.Context, ms *xmain.State, plugin d2plugin.Plugin, theme
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO this may be desirable even for SVGs. Should make it a flag
|
|
||||||
svg, err = imgbundler.Inline(ms, svg)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
out := svg
|
out := svg
|
||||||
if filepath.Ext(outputPath) == ".png" {
|
if filepath.Ext(outputPath) == ".png" {
|
||||||
|
// TODO this may be desirable even for SVGs. Should make it a flag
|
||||||
|
svg, err = imgbundler.Inline(ms, svg)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
out, err = png.ConvertSVG(ms, page, svg)
|
out, err = png.ConvertSVG(ms, page, svg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue