Skip to content

Commit

Permalink
fixup! fix(docx): use proper DPI when creating fallback images
Browse files Browse the repository at this point in the history
  • Loading branch information
edwintorok committed Dec 27, 2023
1 parent 39cc916 commit 1e2dbf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Text/Pandoc/Image.hs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ svgToPngIO dpi widthPt heightPt bs = do
createPngFallback :: (PandocMonad m) => Int -> (Double, Double) -> FilePath -> ByteString -> m (Maybe MediaItem)
createPngFallback dpi (xPt, yPt) fp bs = do
-- create fallback pngs for svgs
res <- svgToPng (dpi, Just xPt, Just yPt, bs)
res <- svgToPng dpi (Just xPt) (Just yPt) bs
case res of
Right bs' -> do
insertMedia fp (Just "image/png") bs'
Expand Down

0 comments on commit 1e2dbf9

Please sign in to comment.