This website requires JavaScript.
47a1e0c81e
src/img2pdf.py: do not use PNG encoding for CMYK input
Johannes 'josch' Schauer
2018-07-17 16:47:27 +0200
3142824bab
src/tests/__init__.py: do not test animation.gif with pdfrw because it doesn't support hexadecimal palette data
Johannes 'josch' Schauer
2018-07-17 16:46:28 +0200
84ce9bbd9c
src/img2pdf.py: do not allow transparency
Johannes 'josch' Schauer
2018-07-17 16:26:32 +0200
90293204b2
src/img2pdf.py: use logging.warning because warn() is deprecated
Johannes 'josch' Schauer
2018-07-17 16:07:01 +0200
d09aa76c9e
README.md: remove ambiguous section about lossless compression
Johannes 'josch' Schauer
2018-06-16 16:56:01 +0200
ade5768d72
src/img2pdf.py: expand error message about alpha channel
Johannes 'josch' Schauer
2018-03-27 10:39:24 +0200
920506b867
Reflect the fact that we now use PNG compression in the --help output
Johannes 'josch' Schauer
2018-03-24 19:53:41 +0100
e78dd80451
Add option --pillow-limit-break to force Pillow to accept large input images
Johannes 'josch' Schauer
2018-03-24 19:47:03 +0100
d9a6c9db03
Interlaced PNGs cannot be directly embedded but have to be re-encoded
Johannes 'josch' Schauer
2018-03-24 18:59:02 +0100
7244d2c6ed
Disallow input images with alpha channel as it cannot be preserved in the PDF and would thus make img2pdf not lossless
Johannes 'josch' Schauer
2018-03-24 18:55:14 +0100
1d9a25dfd2
Proof of concept of using PDF DecodeParms for storing pixel data with PNG compression
Johannes 'josch' Schauer
2018-03-15 11:31:36 +0100
9836b976d3
src/img2pdf.py: handle Pillow returning a DPI of zero (closes : #36 )
Johannes 'josch' Schauer
2017-10-18 10:34:59 +0200
a8269391e9
Implement /UserUnit scaling to support oversized PDFs
James R. Barlow
2017-07-28 13:52:33 -0700
b54617de19
Fix rawdata[:12] bytes/str comparison
James R. Barlow
2017-08-19 22:04:16 -0700
0e76a5bd97
fixing a slew of python 2 issues
Adam Groszer
2017-08-07 11:21:42 +0200
725462462b
release version 0.2.4
0.2.4
Johannes 'josch' Schauer
2017-05-23 17:53:19 +0200
f626d7860f
Produce port that is fully API compatible.
Stephan Richter
2017-05-22 12:43:27 -0400
06560cd0d4
It is easy enough to create a separate class for the Py2 version.
Stephan Richter
2017-05-22 12:41:52 -0400
719928f5f5
Declare file encoding, since it contains some non-ascii chars.
Stephan Richter
2017-05-22 12:41:03 -0400
b25098c3f0
Python 2 does not automatically convert integers to floats, so we have to be a bit more explicit.
Stephan Richter
2017-05-22 12:32:18 -0400
18d637ea34
Make sure we are using the correct IO class in Python 2.
Stephan Richter
2017-05-22 12:31:52 -0400
162721b88e
Properly setup additional Python 2.7 and PyPy support. Note that Py2 does not have enum, but thankfully somone ported it already.
Stephan Richter
2017-05-22 12:30:40 -0400
2455ba6e62
Test all Python versions using tox.
Stephan Richter
2017-05-22 12:29:53 -0400
45cea44fac
README.md: use pip3 instead of pip
Johannes 'josch' Schauer
2017-01-28 19:09:03 +0100
fe86469c6c
README.md: Improve wording
Johannes 'josch' Schauer
2017-01-20 09:43:42 +0100
16993964ce
restore pep8 compliance
Johannes 'josch' Schauer
2017-01-20 09:19:30 +0100
7df29a9acc
Allow to call get_layout_fun with less parameters by specifying defaults
Johannes 'josch' Schauer
2017-01-20 09:15:02 +0100
44ce296581
README.md: add more examples of how to use the library
Johannes 'josch' Schauer
2017-01-20 09:14:36 +0100
e1b2adf70a
MANIFEST.in: also distribute tif and gif test cases
Johannes 'josch' Schauer
2017-01-20 08:49:18 +0100
b9d95bed14
MANIFEST.in: also distribute CHANGES.rst
Johannes 'josch' Schauer
2017-01-20 08:48:51 +0100
60b2e2206a
Add multiframe gif (animated gif) test case
Johannes 'josch' Schauer
2017-01-20 08:48:16 +0100
8476e333cd
src/tests/__init__.py: add support for multiframe gif tests
Johannes 'josch' Schauer
2017-01-20 08:47:58 +0100
e20fe4944c
release version 0.2.3
0.2.3
Johannes 'josch' Schauer
2017-01-20 05:47:06 +0100
1513ab3421
release version 0.2.2
0.2.2
Johannes 'josch' Schauer
2017-01-20 05:23:40 +0100
68d67508b4
setup.py: bump python version to 3.5
Johannes 'josch' Schauer
2017-01-20 05:21:27 +0100
4040e907a3
Make --help output more friendly to help2man
Johannes 'josch' Schauer
2017-01-20 05:17:23 +0100
ef36e86a46
Fix default of --producer argument in --help output to include version
Johannes 'josch' Schauer
2017-01-20 04:46:26 +0100
e4b6854eb5
src/tests/output/mono.png.pdf: remove the /Producer field
Johannes 'josch' Schauer
2017-01-20 04:45:30 +0100
fbeecd2301
Allow to not add the /Producer field to the metadata
Johannes 'josch' Schauer
2017-01-20 04:45:14 +0100
f94684c8ea
If input to convert() doesn't have a write() member, then it must be str or bytes type
Johannes 'josch' Schauer
2017-01-19 20:32:46 +0100
7c90b2c451
restore backwards compatibility and allow passing images as a list
Johannes 'josch' Schauer
2017-01-19 20:32:16 +0100
962d4dbdfb
Make pep8 compliant again
Johannes 'josch' Schauer
2017-01-19 11:22:08 +0100
c2f43a579e
src/tests/output/mono.png.pdf: remove timestamps
Johannes 'josch' Schauer
2017-01-19 09:02:16 +0100
eedf73e73e
Add test cases for CCITT G4
James R. Barlow
2016-07-21 16:33:26 -0700
c27505486e
Break out TIFF G4 transcoding into its own function
James R. Barlow
2016-07-21 14:42:48 -0700
95f84f97bc
Implement automatic monochrome CCITT Group4 encoding via Pillow/libtiff
James R. Barlow
2016-07-21 03:49:56 -0700
0fe30a62d9
fix typos
Jakub Wilk
2016-06-10 16:39:45 +0200
e05d2992e0
src/tests/__init__.py: adapt testcases for last commit
Johannes 'josch' Schauer
2016-05-26 18:11:42 +0200
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
Johannes 'josch' Schauer
2016-05-26 08:19:34 +0200
c29df64cd8
Merge branch 'update-version' into 'master'
josch
2016-05-25 17:43:32 +0200
c704e657cc
update version according to release
Andrey Gursky
2016-05-11 21:39:21 +0200
c3e1662649
release version 0.2.1
0.2.1
Johannes 'josch' Schauer
2016-05-04 23:00:08 +0200
c158585618
only use jp2 to parse jpeg2000 if PIL doesn't support jpeg2000
Johannes 'josch' Schauer
2016-02-17 20:31:46 +0100
e5b0ffee6c
read horizontal and vertical dpi from jpeg2000 files
Johannes 'josch' Schauer
2016-02-17 20:30:58 +0100
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
Johannes 'josch' Schauer
2016-02-17 18:46:24 +0100
00c73a6691
make the separating x optional when specifying the width without the height
Johannes 'josch' Schauer
2016-02-17 18:16:17 +0100
86552a78dc
fix --fit=exact if one value is missing
Johannes 'josch' Schauer
2016-02-17 18:11:11 +0100
ad528d4feb
restore feature that it is allowed to only specify width or height
Johannes 'josch' Schauer
2016-02-17 17:51:57 +0100
3e8894c7da
change MonochromeJpegError to JpegColorspaceError and add check for jpegs with alpha channel
Johannes 'josch' Schauer
2016-02-17 00:37:13 +0100
d9b2550ceb
support for palette images for better GIF support
Johannes 'josch' Schauer
2016-02-17 00:35:40 +0100
edba669000
support from multi-frame images like multipage TIFF and animated GIF
Johannes 'josch' Schauer
2016-02-17 00:30:15 +0100
dbed55655a
fix JPEG2000 handling after move to Python3
Johannes 'josch' Schauer
2016-02-17 00:28:19 +0100
27015c1a6e
fix testsuite after exception renaming
Johannes 'josch' Schauer
2016-02-17 00:26:45 +0100
c6d69b231b
when verbose logging is enabled, print a traceback of possibly raised exceptions
Johannes 'josch' Schauer
2016-02-14 18:55:27 +0100
b6e969d267
input images can now be file like objects, binary strings with the image content or filenames
Johannes 'josch' Schauer
2016-02-14 18:54:59 +0100
cc59fbc3e4
raise exceptions instead of doing an exit()
Johannes 'josch' Schauer
2016-02-13 09:31:33 +0100
900346d430
src/img2pdf.py: add get_fixed_dpi_layout_fun
James R. Barlow
2016-02-13 08:59:52 +0100
a7dba2894f
Put version string in /Producer too
James R. Barlow
2016-02-12 04:55:58 -0800
11affb6264
allow writing the pdf to a file-like object instead of storing everything in memory
James R. Barlow
2016-02-13 08:51:20 +0100
31a2ce231f
cap the maximum page size at 200 dpi which is the maximum supported by PDF
Johannes 'josch' Schauer
2016-02-10 09:44:12 +0100
7160f1628d
fix parsing of dpi and % units
Johannes 'josch' Schauer
2016-02-10 09:32:38 +0100
917c173bfd
set img2pdf as default /producer value
Johannes 'josch' Schauer
2016-02-10 07:25:55 +0100
251238b410
release version 0.2.0 - big rewrite and lots of new features
0.2.0
josch
2015-05-10 14:35:09 +0200
e9bcce0afc
Write to stream instead of building large bytestrings in memory
0.1.5.dev
James R. Barlow
2016-01-18 10:53:46 -0800
8951d7dd05
Fix PDF size check -- in Postscript units not inches
James R. Barlow
2016-01-18 10:51:20 -0800
1261741136
Merge branch 'master' of http://gitlab.mister-muffin.de/josch/img2pdf
James R. Barlow
2016-01-16 03:05:31 -0800
50e22888ca
DPI bug fix
James R. Barlow
2016-01-16 02:58:04 -0800
02fad70e4b
README.md: add another feature idea
josch
2015-05-10 14:24:12 +0200
fdee171d40
README.md: add more wishlist bugs
josch
2015-05-09 20:52:07 +0200
b7aa09834c
README.md: update treatment of non-jpeg files
josch
2015-05-09 07:39:50 +0200
33ee44e50d
restore python3 compatibility
josch
2015-04-12 20:37:57 +0200
18a41fc8df
avoid catch-all except
josch
2015-03-13 14:43:24 +0100
4968d58621
fix typo
josch
2015-03-13 14:33:45 +0100
f3674907d6
store times in UTC and understand YYYY-MM-DD, YYYY-MM-DDTHH:MM, YYYY-MM-DDTHH:MM:SS and everything understood by dateutil module and date --date
josch
2015-03-13 14:29:53 +0100
81647dd06f
use common variable for datetime format string
josch
2015-03-13 13:09:02 +0100
5a1f0701a3
to allow non-ascii characters, encode strings as utf-16-be (big endian) and escape backslashes and parenthesis
josch
2015-03-13 13:05:23 +0100
317a0ee7f2
do not encode as utf8 as pdf is ascii, add safer handling across py2/py3
josch
2015-03-13 11:43:38 +0100
53fdf81c37
Usage
xiota
2015-03-20 12:24:13 -0700
be21c4bbf3
general editing
xiota
2015-03-20 11:30:19 -0700
592cdc1cdb
Changes to pdf page size handling
xiota
2015-03-20 03:37:30 -0700
36fb9173fe
add --version option and __version__ module variable and use ~git version suffix
josch
2015-03-07 03:20:14 +0100
d5fc324b7b
cater for python-pil versions without close() attribute (the 3rd fix)
josch
2015-03-07 03:02:00 +0100
b90e385efe
cater for python-pil versions without close() attribute (the 2nd fix)
josch
2015-03-07 03:01:02 +0100
486361e716
cater for python-pil versions without close() attribute
josch
2015-03-07 02:59:12 +0100
23b77d2544
README.md: add Debian/Ubuntu dependencies
josch
2015-03-07 02:58:44 +0100
9389d81a14
fix testsuite after commit 2cb8e55f
broke it - thanks Jakub Wilk!
josch
2015-03-06 23:55:32 +0100
5d7975164d
remove unused imports
Jakub Wilk
2015-03-06 22:51:58 +0100
53968c31e0
remove -x and -y and replace by -s/--pagesize. Change short option for --subject to -S.
josch
2015-03-06 19:29:24 +0100
ad8567d352
add more details to code comment
josch
2015-03-06 19:19:21 +0100
2cb8e55f1d
output pdf image size with four significant digits
josch
2015-03-06 19:16:36 +0100