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
Johannes 'josch' Schauer
dbed55655a
fix JPEG2000 handling after move to Python3
9 years ago
Johannes 'josch' Schauer
27015c1a6e
fix testsuite after exception renaming
9 years ago
Johannes 'josch' Schauer
c6d69b231b
when verbose logging is enabled, print a traceback of possibly raised exceptions
9 years ago
Johannes 'josch' Schauer
b6e969d267
input images can now be file like objects, binary strings with the image content or filenames
9 years ago
Johannes 'josch' Schauer
cc59fbc3e4
raise exceptions instead of doing an exit()
9 years ago
James R. Barlow
900346d430
src/img2pdf.py: add get_fixed_dpi_layout_fun
9 years ago
James R. Barlow
a7dba2894f
Put version string in /Producer too
9 years ago
James R. Barlow
11affb6264
allow writing the pdf to a file-like object instead of storing everything in memory
9 years ago
Johannes 'josch' Schauer
31a2ce231f
cap the maximum page size at 200 dpi which is the maximum supported by PDF
9 years ago
Johannes 'josch' Schauer
7160f1628d
fix parsing of dpi and % units
9 years ago
Johannes 'josch' Schauer
917c173bfd
set img2pdf as default /producer value
9 years ago
josch
251238b410
release version 0.2.0 - big rewrite and lots of new features
...
- now Python3 only
- pep8 compliant code
- update my email to josch@mister-muffin.de
- move from github to gitlab.mister-muffin.de/josch/img2pdf
- use logging module
- add extensive test suite
- ability to read from standard input
- pdf writer:
- make more compatible with the interface of pdfrw module
- print floats which equal to their integer conversion as integer
- do not print trailing zeroes for floating point numbers
- print more linebreaks
- add binary string at beginning of PDF to indicate that the PDF
contains binary data
- handle datetime and unicode strings by using utf-16-be encoding
- new options (see --help for more details):
- --without-pdfrw
- --imgsize
- --border
- --fit
- --auto-orient
- --viewer-panes
- --viewer-initial-page
- --viewer-magnification
- --viewer-page-layout
- --viewer-fit-window
- --viewer-center-window
- --viewer-fullscreen
- remove short command line options for metadata arguments
9 years ago
josch
02fad70e4b
README.md: add another feature idea
9 years ago
josch
fdee171d40
README.md: add more wishlist bugs
9 years ago
josch
b7aa09834c
README.md: update treatment of non-jpeg files
9 years ago
josch
33ee44e50d
restore python3 compatibility
10 years ago
josch
18a41fc8df
avoid catch-all except
10 years ago
josch
4968d58621
fix typo
10 years ago
josch
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
10 years ago
josch
81647dd06f
use common variable for datetime format string
10 years ago
josch
5a1f0701a3
to allow non-ascii characters, encode strings as utf-16-be (big endian) and escape backslashes and parenthesis
10 years ago
josch
317a0ee7f2
do not encode as utf8 as pdf is ascii, add safer handling across py2/py3
10 years ago
xiota
53fdf81c37
Usage
...
* rename "Commandline Options" to "Usage"
* General Notes
* Controlling Page Size
* Colorspace
10 years ago
xiota
be21c4bbf3
general editing
10 years ago
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
10 years ago
josch
36fb9173fe
add --version option and __version__ module variable and use ~git version suffix
10 years ago
josch
d5fc324b7b
cater for python-pil versions without close() attribute (the 3rd fix)
10 years ago
josch
b90e385efe
cater for python-pil versions without close() attribute (the 2nd fix)
10 years ago
josch
486361e716
cater for python-pil versions without close() attribute
10 years ago
josch
23b77d2544
README.md: add Debian/Ubuntu dependencies
10 years ago
josch
9389d81a14
fix testsuite after commit 2cb8e55f
broke it - thanks Jakub Wilk!
10 years ago
Jakub Wilk
5d7975164d
remove unused imports
10 years ago
josch
53968c31e0
remove -x and -y and replace by -s/--pagesize. Change short option for --subject to -S.
10 years ago
josch
ad8567d352
add more details to code comment
10 years ago
josch
2cb8e55f1d
output pdf image size with four significant digits
10 years ago
Jakub Wilk
8f757bc3bb
README: fix a typo
10 years ago
josch
4e6a4b9378
release 0.1.5
10 years ago
josch
e8dc019bd5
update CHANGES.rst
10 years ago
josch
aabd104114
update tests handling
10 years ago
josch
4d005c8443
write to sys.stdout.buffer and fall back to sys.stdout
10 years ago
josch
e810f3baf4
close cStringIO and PIL.Image
10 years ago
josch
90e954dc0a
make sure dpi are read as integers and divided using float division
10 years ago
josch
8887fe21f4
print floats with four decimal places
10 years ago