Because I need the images resolution I added export of 'hImageRows' and 'hImageColumns' to Images.
Feel free to pull it in your tree.
added export of 'hImageRows' and 'hImageColumns'
Sure I'm pulling it, those two exports cost little and add user-friendlyness.
FYI, getting image resolution was possible before by extracting the image info like in this snippet:
calcReductionFactors :: HImage -- ^ The image
-> IO [Dimension]
calcReductionFactors himg =
withForeignPtr (getImage himg) $ \p -> do
img <- peek p
return $ computeFactors (columns img) (rows img)
(was little bit painful to extract the Ptr from the foreignPtr to get this basic info)
Thanks for this addition, it will be in the next hsmagick release