ec4a06fad2
build(deps): bump docker/login-action from 1 to 2 ( #988 )
...
Bumps [docker/login-action](https://github.com/docker/login-action ) from 1 to 2.
- [Release notes](https://github.com/docker/login-action/releases )
- [Commits](https://github.com/docker/login-action/compare/v1...v2 )
---
updated-dependencies:
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-12 02:22:53 -07:00
48c6e2318e
build(deps): bump docker/setup-qemu-action from 1 to 2 ( #987 )
...
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action ) from 1 to 2.
- [Release notes](https://github.com/docker/setup-qemu-action/releases )
- [Commits](https://github.com/docker/setup-qemu-action/compare/v1...v2 )
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-12 02:22:38 -07:00
2eafa5e070
build(deps): bump actions/upload-artifact from 2 to 3 ( #989 )
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 2 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-12 02:21:27 -07:00
6aa04d7569
build(deps): bump actions/checkout from 2 to 3 ( #991 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-12 02:21:12 -07:00
James R. Barlow
777ba99ccc
v13.6.1 release notes
2022-07-12 02:11:26 -07:00
James R. Barlow
001b3324f1
Require setuptools-scm 7.0.5 to ensure sdists work alright
2022-07-12 02:09:37 -07:00
James R. Barlow
b1f2d257e2
Typing improvements
2022-07-09 02:24:19 -07:00
James R. Barlow
24a08e5170
hocrtransform: suppress deprecation warning from importing reportlab
2022-07-07 02:09:47 -07:00
James R. Barlow
adf97fd82c
pipeline: eliminate useless test
2022-07-07 02:08:14 -07:00
James R. Barlow
a60ea72517
docs: improve remarks about lossy JBIG2 and lossy image transformations
2022-07-04 23:01:20 -07:00
James R. Barlow
59f967cdcd
Activate GHA dependabot
2022-07-04 22:43:19 -07:00
James R. Barlow
6e439ee89e
Modernize setuptools usage and setuptools_scm
2022-07-04 02:26:14 -07:00
James R. Barlow
da38e1b035
docs: adding missing plugins
2022-07-04 02:16:20 -07:00
James R. Barlow
28c60c4f82
v13.6.0 release notes
v13.6.0
2022-07-03 15:35:22 -07:00
James R. Barlow
a5efc4af9b
unpaper: replace input pnm with png
...
Unpaper or its underlying libraries don't seem to accept pnms with an
odd integer width. Although it's not clear if this is the issue at all.
In any case, keeping the image a PNG works around the issue. unpaper
only accepted PNM input in the past, which is why we send it PNM.
Since it now accepts PNG, we might as well use PNG.
Unpaper can write PNG as output too, but this added a few seconds to
the test suite was not committed.
Related issues:
https://github.com/ocrmypdf/OCRmyPDF/issues/887
https://github.com/ocrmypdf/OCRmyPDF/issues/665
https://github.com/unpaper/unpaper/issues/82
2022-07-03 15:32:16 -07:00
James R. Barlow
1141235c42
Merge remote-tracking branch 'origin/master'
2022-06-24 01:05:08 -07:00
2b6b7a4975
Update README to show nix package manager install option ( #904 )
...
ocrmypdf now works on M1 Mac (aarch64-darwin)
Co-authored-by: xave <xavieking@gmail.com >
2022-06-19 01:47:10 -07:00
James R. Barlow
b062c9e8c0
pluginspec: hint that optimize may need to implement initialize
...
[ci skip]
2022-06-19 01:35:30 -07:00
James R. Barlow
ed632ae366
docs: update batch to avoid suggesting Docker volumes
...
[ci skip]
2022-06-19 01:01:39 -07:00
James R. Barlow
af742229e7
docs: fix sentence fragment in batch page
...
Closes #980
[ci skip]
2022-06-19 00:41:58 -07:00
Alexander Jaust and GitHub
e2d998245d
Fix type in cookbook.rst ( #978 )
...
Add missing dash in warning about `--clean-final` and `--remove-background` commands.
2022-06-19 00:32:35 -07:00
James R. Barlow
8c58e95c3a
Add new initialize hookspec to make suppress plugins easier
2022-06-19 00:31:42 -07:00
James R. Barlow
61600111d3
test_pdfinfo: refactor by extracting fixtures
2022-06-18 16:29:57 -07:00
James R. Barlow
e4c45e3d3b
Plugins should ideally not import from ocrmypdf._*
2022-06-18 16:03:55 -07:00
Julius Bullinger and GitHub
7cabbb125f
watcher: Add an option to archive processed originals ( #951 )
...
* watcher: Add an option to archive processed originals
This adds a feature from existing OCRmyPDF watchdog Docker containers like meyay/ocrmypdf-batch and unze/ocrmypdf-watchdog. With this option, the input directory can be kept clean from already processed files, without losing the originals.
* docs: Improve watcher.py's Docker parameters documentation
2022-06-17 15:17:03 -07:00
James R. Barlow
d8753dc790
Fix Windows issue if no exception
v13.5.0
2022-06-13 01:46:59 -07:00
James R. Barlow
ef43d7e016
v13.5.0 release notes
2022-06-13 01:30:27 -07:00
James R. Barlow
17a5b8b43c
Refactor reporting of optimization failures
2022-06-13 01:30:15 -07:00
James R. Barlow
13d11e76e5
optimize plugin: solve linearization and "is optimization enabled?" issues
2022-06-13 00:59:41 -07:00
James R. Barlow
61069660a2
Move optimization options to plugin
2022-06-12 02:42:16 -07:00
James R. Barlow
685a06c93d
Move optimize into a builtin plugin
2022-06-12 02:23:13 -07:00
James R. Barlow
6cdf68363a
docs: copyright year
2022-06-12 00:31:01 -07:00
James R. Barlow
522ff3c21a
Remove major version pins
2022-06-12 00:31:01 -07:00
James R. Barlow
10245dc954
Refactor a helper to use the Python API eventually
2022-06-12 00:31:01 -07:00
James R. Barlow
3d4f80639d
Remove test that is now always skipped
2022-06-12 00:31:01 -07:00
James R. Barlow
db9a22c9dd
api: call enable_ansi_support unconditionally
...
coloredlogs documentation says this is (now?) permitted.
Also import it from the right place.
2022-06-12 00:31:01 -07:00
James R. Barlow
31683530f8
api/cli: replace private variable access with method
2022-06-12 00:31:01 -07:00
James R. Barlow
0e550a1c6d
graft: use pikepdf's random name API instead of our own
...
Minor change to PDF output.
2022-06-12 00:31:01 -07:00
James R. Barlow
b17fb61389
Configure pylint in pyproject and delint
2022-06-12 00:30:44 -07:00
James R. Barlow
d640c2ded3
Tidy some if condition -> EAFP
2022-06-11 00:21:21 -07:00
James R. Barlow
a0ac448d52
Tidy some old-school %s strings
2022-06-11 00:15:19 -07:00
James R. Barlow
e3ba13e365
docs: update installation notes
...
Add Snap. Remove Mageia because I have no idea if it still works. Drop a
lot of old versions and old notes. Change pip3->pip except for old py2/py3 images.
Try to make things less version sensitive.
2022-06-10 01:33:05 -07:00
James R. Barlow
0cd04abc4e
snap: add logo
2022-06-09 16:59:20 -07:00
Alexander Langanke and James R. Barlow
ee81f3968f
Add snapcraft.yaml
2022-06-08 01:22:18 -07:00
James R. Barlow
21cacad93b
unpaper: super syntax
v13.4.7
2022-06-02 17:05:59 -07:00
James R. Barlow
3589f4e7d1
unpaper: fix unsaved change
2022-06-02 02:22:48 -07:00
James R. Barlow
1cdc2591e5
v13.4.7 release notes
2022-06-02 02:00:16 -07:00
James R. Barlow
e05f9575a8
Merge remote-tracking branch 'origin/master'
2022-06-02 01:57:39 -07:00
James R. Barlow
10c703e119
unpaper: use TemporaryDirectory(ignore_cleanup_errors=True) where available
...
Fixes #974 when used in conjunction with Python 3.10.
Reviewed other uses of TemporaryDirectory in ocrmypdf and decided it
was not worth fixing them since neither are exactly production code.
2022-06-02 01:56:41 -07:00
James R. Barlow
0ac15dd0b2
Suppress libxmp DeprecationWarning during test
2022-06-01 00:46:16 -07:00