ImageSize: Fixed implementation of sizeInPoints.

This commit is contained in:
John MacFarlane 2012-01-15 15:58:44 -08:00
parent b4e2d69cda
commit 9ce3e2bf85

View file

@ -70,7 +70,7 @@ sizeInPixels :: ImageSize -> (Integer, Integer)
sizeInPixels s = (pxX s, pxY s)
sizeInPoints :: ImageSize -> (Integer, Integer)
sizeInPoints s = (pxX s `div` dpiX s * 72, pxY s `div` dpiY s * 72)
sizeInPoints s = (pxX s * 72 `div` dpiX s, pxY s * 72 `div` dpiY s)
pngSize :: ByteString -> Maybe ImageSize
pngSize img = do