summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/ImageSize.hs
Commit message (Collapse)AuthorAge
* ImageSize: fixed some exif parsing bugs.John MacFarlane2015-05-10
| | | | | Closes #1834. The image originally supplied works fine now with pandoc.
* ImageSize: Use runGetOrFail with binary 0.7+.John MacFarlane2015-05-09
|
* ImageSize: make jpeg header parsing routines return Either.John MacFarlane2015-05-09
| | | | See #1834.
* ImageSize: make imageSize return an Either, not a Maybe.John MacFarlane2015-05-09
| | | | | This will give us better error reporting options. This is part of a fix for #1834.
* Updated copyright notices to -2015. Closes #2111.John MacFarlane2015-04-26
|
* Move utility error functions to Text.Pandoc.SharedMatthew Pickering2015-02-18
|
* Remove landmine from ImageSizeMatthew Pickering2015-02-18
|
* ImageSize: Use default instead of failing if image size not foundJohn MacFarlane2014-06-20
| | | | in exif header. Closes #1358.
* ImageSize: ignore unknown exif header tag rather than crashing.John MacFarlane2014-06-19
| | | | | Some images seem to have tag type of 256, which was causing a runtime error.
* Update copyright notices for 2014, add missing noticesAlbert Krewinkel2014-05-09
|
* ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6.John MacFarlane2014-01-24
| | | | Closes #1124.
* Allow binary 0.5. Version bump to 1.12.3.1.John MacFarlane2014-01-14
|
* Minor improvement to exif parser.John MacFarlane2014-01-09
|
* Better exif parsing, including image resolution.John MacFarlane2014-01-09
| | | | | | | This introduces a dependency on binary >= 0.6, but we depend on binary >= 0.5 via zip-archive anyway. Closes #976.
* Text.Pandoc.ImageSize: Parse EXIF format JPGs.John MacFarlane2014-01-08
| | | | | | | | | 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.
* Text.Pandoc.ImageSize: Handle EPS.John MacFarlane2013-07-16
| | | | | Closes #903. This change will make EPS images properly sized on conversion to Word.
* ImageSize: Added Pdf to ImageType.John MacFarlane2013-02-23
| | | | So far we have no function to determine PDF's size.
* ImageSize: Remove no longer exported readImageSize.John MacFarlane2013-01-11
|
* ImageSize: Use strict, not lazy bytestrings.John MacFarlane2013-01-11
|
* ImageSize: Fixed implementation of sizeInPoints.John MacFarlane2012-01-15
|
* Fixed whitespace bug in comments.John MacFarlane2012-01-15
|
* ImageSize: extract dpi information from PNG and JPEG.John MacFarlane2012-01-15
| | | | | * ImageSize record now includes dpiX, dpiY, pxX, pxY. * New functions sizeInPixels and sizeInPoints.
* Export ImageType(..) from ImageSize.John MacFarlane2012-01-14
|
* Added Text.Pandoc.ImageSize.John MacFarlane2012-01-14
This is intened for use in docx and odt writers, so the size of image boxes can be calculated.