Skip to content

Commit 1e2dbf9

Browse files
committed
fixup! fix(docx): use proper DPI when creating fallback images
1 parent 39cc916 commit 1e2dbf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Text/Pandoc/Image.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ svgToPngIO dpi widthPt heightPt bs = do
5252
createPngFallback :: (PandocMonad m) => Int -> (Double, Double) -> FilePath -> ByteString -> m (Maybe MediaItem)
5353
createPngFallback dpi (xPt, yPt) fp bs = do
5454
-- create fallback pngs for svgs
55-
res <- svgToPng (dpi, Just xPt, Just yPt, bs)
55+
res <- svgToPng dpi (Just xPt) (Just yPt) bs
5656
case res of
5757
Right bs' -> do
5858
insertMedia fp (Just "image/png") bs'

0 commit comments

Comments
 (0)