use postprocessed svg

This commit is contained in:
Bernard Xie 2022-11-17 14:45:50 -08:00
parent dc8fdda949
commit 3fee69a556
No known key found for this signature in database
GPG key ID: 3C3E0036CE0F892C

View file

@ -186,7 +186,7 @@ func compile(ctx context.Context, ms *xmain.State, plugin d2plugin.Plugin, input
}
if filepath.Ext(outputPath) == ".png" {
outputImage, err = png.ExportPNG(ms, page, svg)
outputImage, err = png.ExportPNG(ms, page, outputImage)
if err != nil {
return nil, err
}