Johannes 'josch' Schauer
1d9a25dfd2
Proof of concept of using PDF DecodeParms for storing pixel data with PNG compression
7 years ago
Johannes 'josch' Schauer
9836b976d3
src/img2pdf.py: handle Pillow returning a DPI of zero ( closes : #36 )
7 years ago
James R. Barlow
a8269391e9
Implement /UserUnit scaling to support oversized PDFs
...
The original PDF specification supported a maximum of 200x200" pages or
14400 PDF units. In PDF 1.6 rather than remove this limitation, Adobe
added the /UserUnit field for pages, which allows one to specify the
scaling that should be applied for user-facing numbers, while keeping
the internal limit of 14400 units.
Many real-world designs are larger than 200" in one direction. One
example is tractor feed or rolled paper which may be easier to scan in
one continuous run rather than segment into pages.
/UserUnit is independent of the pixel size and resolution of the image.
/UserUnit can also indicate very small page sizes but this is not
implemented here.
7 years ago
James R. Barlow
b54617de19
Fix rawdata[:12] bytes/str comparison
7 years ago
Johannes 'josch' Schauer
725462462b
release version 0.2.4
7 years ago
Stephan Richter
f626d7860f
Produce port that is fully API compatible.
7 years ago
Stephan Richter
06560cd0d4
It is easy enough to create a separate class for the Py2 version.
7 years ago
Stephan Richter
719928f5f5
Declare file encoding, since it contains some non-ascii chars.
7 years ago
Stephan Richter
b25098c3f0
Python 2 does not automatically convert integers to floats, so we have to be a bit more explicit.
7 years ago
Stephan Richter
18d637ea34
Make sure we are using the correct IO class in Python 2.
7 years ago
Stephan Richter
162721b88e
Properly setup additional Python 2.7 and PyPy support. Note that Py2 does not have enum, but thankfully somone ported it already.
7 years ago
Stephan Richter
2455ba6e62
Test all Python versions using tox.
7 years ago
Johannes 'josch' Schauer
45cea44fac
README.md: use pip3 instead of pip
8 years ago
Johannes 'josch' Schauer
fe86469c6c
README.md: Improve wording
8 years ago
Johannes 'josch' Schauer
16993964ce
restore pep8 compliance
8 years ago
Johannes 'josch' Schauer
7df29a9acc
Allow to call get_layout_fun with less parameters by specifying defaults
8 years ago
Johannes 'josch' Schauer
44ce296581
README.md: add more examples of how to use the library
8 years ago
Johannes 'josch' Schauer
e1b2adf70a
MANIFEST.in: also distribute tif and gif test cases
8 years ago
Johannes 'josch' Schauer
b9d95bed14
MANIFEST.in: also distribute CHANGES.rst
8 years ago
Johannes 'josch' Schauer
60b2e2206a
Add multiframe gif (animated gif) test case
8 years ago
Johannes 'josch' Schauer
8476e333cd
src/tests/__init__.py: add support for multiframe gif tests
8 years ago
Johannes 'josch' Schauer
e20fe4944c
release version 0.2.3
8 years ago
Johannes 'josch' Schauer
1513ab3421
release version 0.2.2
8 years ago
Johannes 'josch' Schauer
68d67508b4
setup.py: bump python version to 3.5
8 years ago
Johannes 'josch' Schauer
4040e907a3
Make --help output more friendly to help2man
8 years ago
Johannes 'josch' Schauer
ef36e86a46
Fix default of --producer argument in --help output to include version
8 years ago
Johannes 'josch' Schauer
e4b6854eb5
src/tests/output/mono.png.pdf: remove the /Producer field
8 years ago
Johannes 'josch' Schauer
fbeecd2301
Allow to not add the /Producer field to the metadata
8 years ago
Johannes 'josch' Schauer
f94684c8ea
If input to convert() doesn't have a write() member, then it must be str or bytes type
8 years ago
Johannes 'josch' Schauer
7c90b2c451
restore backwards compatibility and allow passing images as a list
8 years ago
Johannes 'josch' Schauer
962d4dbdfb
Make pep8 compliant again
8 years ago
Johannes 'josch' Schauer
c2f43a579e
src/tests/output/mono.png.pdf: remove timestamps
8 years ago
James R. Barlow
eedf73e73e
Add test cases for CCITT G4
8 years ago
James R. Barlow
c27505486e
Break out TIFF G4 transcoding into its own function
8 years ago
James R. Barlow
95f84f97bc
Implement automatic monochrome CCITT Group4 encoding via Pillow/libtiff
8 years ago
Jakub Wilk
0fe30a62d9
fix typos
8 years ago
Johannes 'josch' Schauer
e05d2992e0
src/tests/__init__.py: adapt testcases for last commit
8 years ago
Johannes 'josch' Schauer
d78b2cbdbc
Fix bug where horizontal and vertical borders where switched when page size was also given. Thanks Erik./a.out| sox -c 1 -e unsigned-integer -r 8000 -t u8 - -d --buffer 32 Closes #30
8 years ago
josch
c29df64cd8
Merge branch 'update-version' into 'master'
...
update version according to release
See merge request !3
8 years ago
Andrey Gursky
c704e657cc
update version according to release
8 years ago
Johannes 'josch' Schauer
c3e1662649
release version 0.2.1
8 years ago
Johannes 'josch' Schauer
c158585618
only use jp2 to parse jpeg2000 if PIL doesn't support jpeg2000
9 years ago
Johannes 'josch' Schauer
e5b0ffee6c
read horizontal and vertical dpi from jpeg2000 files
9 years ago
Johannes 'josch' Schauer
ef9eac7326
instead of storing a limited list of supported colorspaces and imageformats, store the items requiring special treatment but do not abort if a value other than the listed ones is supported by PIL
9 years ago
Johannes 'josch' Schauer
00c73a6691
make the separating x optional when specifying the width without the height
9 years ago
Johannes 'josch' Schauer
86552a78dc
fix --fit=exact if one value is missing
9 years ago
Johannes 'josch' Schauer
ad528d4feb
restore feature that it is allowed to only specify width or height
9 years ago
Johannes 'josch' Schauer
3e8894c7da
change MonochromeJpegError to JpegColorspaceError and add check for jpegs with alpha channel
9 years ago
Johannes 'josch' Schauer
d9b2550ceb
support for palette images for better GIF support
9 years ago
Johannes 'josch' Schauer
edba669000
support from multi-frame images like multipage TIFF and animated GIF
9 years ago