img2pdf/src
xiota 592cdc1cdb Changes to pdf page size handling
Changes to `valid_size()`
* accept common page sizes, such as letter and a4.
* parse dimensions of format: AuxBv#, where A is width, u is units, B is height, v is units, # are options.
* accept units: in, cm, mm, pt

Changes to `convert()`:
* resize pages based on dpi calculations
* default resize images into page size (like default resize in imagemagick)
* implement exact resizing (ignore dpi; equiv to ! in imagemagick)

Created `get_ndpi()`:
* provides dpi for page resizing
* implement fill resizing (equiv to ^ in imagemagick)

Other changes:
* default dpi in global variable
2015-03-20 06:54:11 -07:00
..
tests cater for python-pil versions without close() attribute (the 3rd fix) 2015-03-07 03:02:00 +01:00
img2pdf.py Changes to pdf page size handling 2015-03-20 06:54:11 -07:00
jp2.py remove unused imports 2015-03-06 22:51:58 +01:00