Skip to content

Commit de7c135

Browse files
authored
Deskew crooked pages using OCRmyPDF flags (ciur/papermerge#494)
1 parent 726e51a commit de7c135

File tree

6 files changed

+25
-5
lines changed

6 files changed

+25
-5
lines changed

.github/workflows/version-bump.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,18 @@ jobs:
5252
files_list: "pyproject.toml,papermerge/core/version.py"
5353
incremented_part: ${{ inputs.incremented_part }}
5454

55+
- name: Set up Python 3.10
56+
uses: actions/setup-python@v4
57+
with:
58+
python-version: "3.10"
59+
60+
- name: Generate Changelog
61+
run: |
62+
python -m pip install --upgrade pip
63+
pip install towncrier
64+
# will remove files from changelog.d/ and update changelog.md file
65+
towncrier build --version ${{steps.step-version-bump.outputs.NEW_VERSION}} --yes
66+
5567
- name: Commit files
5668
run: |
5769
git config --local user.email "github-actions[bot]@users.noreply.github.com"

changelog.d/1.changed.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
<!-- towncrier release notes start -->
44

5+
## [2.1.1] - 2022-12-17
6+
7+
8+
### Added
9+
10+
- Use OCRmyPDF deskew feature/flag i.e. OCR process will deskew crooked pages [issue#494](https://github.com/ciur/papermerge/issues/494)
11+
12+
513
<!-- towncrier release notes end -->
614

715
## [2.1.0] - 2022-12-12

papermerge/core/ocr/document.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ def _ocr_document(
6868
keep_temporary_files=False,
6969
sidecar_dir=sidecars_dir,
7070
sidecar_format='svg',
71-
preview_width=preview_width
71+
preview_width=preview_width,
72+
deskew=True
7273
)
7374

7475

papermerge/core/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.1.0"
1+
__version__ = "2.1.1"

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "papermerge-core"
3-
version = "2.1.0"
3+
version = "2.1.1"
44
description = "Open source document management system for digital archives"
55
authors = ["Eugen Ciur <[email protected]>"]
66
maintainers = ["Eugen Ciur <[email protected]>"]
@@ -118,7 +118,7 @@ filename = "changelog.md"
118118
start_string = "<!-- towncrier release notes start -->\n"
119119
underlines = ["", "", ""]
120120
template = "changelog.d/changelog_template.jinja"
121-
title_format = "## {version} - {project_date}"
121+
title_format = "## [{version}] - {project_date}"
122122
issue_format = "[issue#{issue}](https://github.com/ciur/papermerge/issues/{issue})"
123123

124124
[[tool.towncrier.type]]

0 commit comments

Comments
 (0)