aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/ImageSize.hs
AgeCommit message (Collapse)AuthorFilesLines
2015-05-09ImageSize: make imageSize return an Either, not a Maybe.John MacFarlane1-9/+11
This will give us better error reporting options. This is part of a fix for #1834.
2015-04-26Updated copyright notices to -2015. Closes #2111.John MacFarlane1-2/+2
2015-02-18Move utility error functions to Text.Pandoc.SharedMatthew Pickering1-2/+1
2015-02-18Remove landmine from ImageSizeMatthew Pickering1-30/+37
2014-06-20ImageSize: Use default instead of failing if image size not foundJohn MacFarlane1-1/+6
in exif header. Closes #1358.
2014-06-19ImageSize: ignore unknown exif header tag rather than crashing.John MacFarlane1-1/+2
Some images seem to have tag type of 256, which was causing a runtime error.
2014-05-09Update copyright notices for 2014, add missing noticesAlbert Krewinkel1-2/+2
2014-01-24ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6.John MacFarlane1-4/+5
Closes #1124.
2014-01-14Allow binary 0.5. Version bump to 1.12.3.1.John MacFarlane1-3/+6
2014-01-09Minor improvement to exif parser.John MacFarlane1-2/+2
2014-01-09Better exif parsing, including image resolution.John MacFarlane1-15/+210
This introduces a dependency on binary >= 0.6, but we depend on binary >= 0.5 via zip-archive anyway. Closes #976.
2014-01-08Text.Pandoc.ImageSize: Parse EXIF format JPGs.John MacFarlane1-6/+28
Note: For now we just assign them all 72 dpi. It wasn't clear to me how to extract the resolution information. At least the aspect ratio will be right, and 72 dpi is the most common setting. Closes #976.
2013-07-16Text.Pandoc.ImageSize: Handle EPS.John MacFarlane1-1/+23
Closes #903. This change will make EPS images properly sized on conversion to Word.
2013-02-23ImageSize: Added Pdf to ImageType.John MacFarlane1-1/+3
So far we have no function to determine PDF's size.
2013-01-11ImageSize: Remove no longer exported readImageSize.John MacFarlane1-4/+1
2013-01-11ImageSize: Use strict, not lazy bytestrings.John MacFarlane1-2/+2
2012-01-15ImageSize: Fixed implementation of sizeInPoints.John MacFarlane1-1/+1
2012-01-15Fixed whitespace bug in comments.John MacFarlane1-19/+16
2012-01-15ImageSize: extract dpi information from PNG and JPEG.John MacFarlane1-45/+89
* ImageSize record now includes dpiX, dpiY, pxX, pxY. * New functions sizeInPixels and sizeInPoints.
2012-01-14Export ImageType(..) from ImageSize.John MacFarlane1-1/+1
2012-01-14Added Text.Pandoc.ImageSize.John MacFarlane1-0/+110
This is intened for use in docx and odt writers, so the size of image boxes can be calculated.