1
0
Fork 0
forked from josch/img2pdf
Commit graph

46 commits

Author SHA1 Message Date
085dd192f6 Add support for JBIG2 (generic coding)
Implements the proposal detailed at
josch/img2pdf#112 (comment)

This is a limited implementation of JBIG2, which can be extended to
support multiple pages, symbol tables, and other features of the format
in the future.

To test, I included a test fixture. You can also download 042.bmp (the same
one as @josch already downloaded in josch/img2pdf#112 (comment)
from https://git.ghostscript.com/?p=tests.git;a=blob_plain;f=jbig2/042.bmp;hb=HEAD
and run the following command:

  jbig2 042.bmp | img2pdf > 042.pdf

This results in a small PDF, just as @josch originally found in the
comment mentioned above.

This is my first contribution to this repository so let me know if
something else is needed. Thanks for a great library!
2023-11-29 00:00:00 +00:00
272fe0433f allow pathlib.Path objects by allowing objects implementing read_bytes function 2022-07-02 21:19:34 +02:00
d9b90499f3
README.md: compare to econvert (closes: #143) 2022-05-18 13:08:05 +02:00
edb0d29a14
README.md: fix link 2022-05-13 21:27:12 +02:00
bb3e8b0098
README.md: document that img2pdf.exe can now be downloaded via release 2022-05-13 21:25:37 +02:00
c3db273e23
Remove outdated readme entry concerning JP2 colorspace
If I understood the code in `jp2.py` correctly, this should now work.
Moreover, Pillow should usually be able to open JP2 files, so `jp2.py` is only a fallback.
2022-04-07 22:08:41 +02:00
3b117e674b
clarify that input with an alpha channel requires additional computation (closes: #142) 2022-04-07 17:13:16 +02:00
3da370d3bd
add more information about how to ignore invalid rotation values in input images 2022-02-06 20:33:30 +01:00
1ffb160453
Readme: remove alpha channels section 2021-10-03 16:04:53 +02:00
635b08c321
README: fix CI URLs 2021-08-21 20:57:15 +02:00
55d589a548
README.md: document how to remove alpha channel and --rotation=ifvalid 2021-08-14 10:19:46 +02:00
80d24a1d49
README.md: add more examples (closes: #98) 2021-05-07 11:20:47 +02:00
b5f0912e13
README.md: minimize scope of opened file in examples
Prompted-by: Joao Rodrigo Windisch Olenscki
2021-03-09 17:35:27 +01:00
17dd59e722
README.md: clarify PDF transparency (closes: #76) 2020-05-06 08:55:46 +02:00
24b679d8e5
README.md: add comparison to podofoimg2pdf 2020-04-05 12:15:53 +02:00
1b6e9e3da6
README.md: add 'Library' header 2020-04-05 12:15:09 +02:00
5375a17181
README.md: add more examples 2020-03-16 16:06:44 +01:00
b31d4e48d8
README.md: add appveyor and travis CI batches 2019-08-25 07:05:25 +02:00
be9e48871c
README.md: add screenshot 2019-08-25 07:02:50 +02:00
9395b6fbbe
README.md: comparison to other software 2018-08-01 22:14:14 +02:00
f5d8d86dff
Also do not re-encode CCITT Group 4 encoded TIFF images
Add additional property of input images: inverted

closes: #47
2018-08-01 22:12:40 +02:00
4c5faf408f
README.md: restructure 2018-07-18 15:52:54 +02:00
d09aa76c9e
README.md: remove ambiguous section about lossless compression 2018-06-16 16:56:01 +02:00
1d9a25dfd2
Proof of concept of using PDF DecodeParms for storing pixel data with PNG compression 2018-03-15 11:31:36 +01:00
45cea44fac README.md: use pip3 instead of pip 2017-01-28 19:09:03 +01:00
fe86469c6c README.md: Improve wording 2017-01-20 09:43:42 +01:00
44ce296581 README.md: add more examples of how to use the library 2017-01-20 09:14:36 +01:00
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
2016-02-02 19:51:27 +01:00
josch
02fad70e4b README.md: add another feature idea 2015-05-10 14:24:12 +02:00
josch
fdee171d40 README.md: add more wishlist bugs 2015-05-09 20:52:07 +02:00
josch
b7aa09834c README.md: update treatment of non-jpeg files 2015-05-09 07:39:50 +02:00
xiota
53fdf81c37 Usage
* rename "Commandline Options" to "Usage"
  * General Notes
  * Controlling Page Size
  * Colorspace
2015-03-20 20:02:50 -07:00
xiota
be21c4bbf3 general editing 2015-03-20 19:46:47 -07:00
josch
23b77d2544 README.md: add Debian/Ubuntu dependencies 2015-03-07 02:58:44 +01:00
Jakub Wilk
8f757bc3bb README: fix a typo 2015-03-05 23:23:16 +01:00
josch
18ca3b4491 make 2nd, 3rd and 4th argument optional by supplying None as default 2015-02-16 07:15:10 +01:00
lukahn
d9054ddfd3 Updated library section to reflect latest implementation 2015-01-15 16:19:18 +11:00
josch
acfb3270ab fix markdown in readme 2014-06-27 22:31:21 +02:00
josch
818db1902f license change from GPL to LGPL 2014-03-30 08:10:12 +02:00
Stephan Richter
0e3dbefbbf Provide some installation instructions using the typical Python tool chain. 2014-03-14 19:18:38 +01:00
josch
c21c148daf add documentation for --colorspace 2012-12-22 18:07:51 +01:00
josch
69ff6e7961 commandline help in README.md 2012-03-29 12:34:17 +02:00
josch
c6bf6baf9d add speed benefit to README 2012-03-29 12:14:07 +02:00
josch
0bd841c530 JPEG2000 support 2012-03-29 11:53:57 +02:00
josch
7293949336 restructure readme 2012-03-29 11:11:23 +02:00
josch
055b075397 initial commit 2012-03-29 11:08:32 +02:00