Skip to content

Commit

Permalink
Deskew crooked pages using OCRmyPDF flags (ciur/papermerge#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
ciur authored Dec 17, 2022
1 parent 726e51a commit de7c135
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 5 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/version-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,18 @@ jobs:
files_list: "pyproject.toml,papermerge/core/version.py"
incremented_part: ${{ inputs.incremented_part }}

- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Generate Changelog
run: |
python -m pip install --upgrade pip
pip install towncrier
# will remove files from changelog.d/ and update changelog.md file
towncrier build --version ${{steps.step-version-bump.outputs.NEW_VERSION}} --yes
- name: Commit files
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
Expand Down
1 change: 0 additions & 1 deletion changelog.d/1.changed.md

This file was deleted.

8 changes: 8 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

<!-- towncrier release notes start -->

## [2.1.1] - 2022-12-17


### Added

- Use OCRmyPDF deskew feature/flag i.e. OCR process will deskew crooked pages [issue#494](https://github.com/ciur/papermerge/issues/494)


<!-- towncrier release notes end -->

## [2.1.0] - 2022-12-12
Expand Down
3 changes: 2 additions & 1 deletion papermerge/core/ocr/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ def _ocr_document(
keep_temporary_files=False,
sidecar_dir=sidecars_dir,
sidecar_format='svg',
preview_width=preview_width
preview_width=preview_width,
deskew=True
)


Expand Down
2 changes: 1 addition & 1 deletion papermerge/core/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.1.0"
__version__ = "2.1.1"
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "papermerge-core"
version = "2.1.0"
version = "2.1.1"
description = "Open source document management system for digital archives"
authors = ["Eugen Ciur <[email protected]>"]
maintainers = ["Eugen Ciur <[email protected]>"]
Expand Down Expand Up @@ -118,7 +118,7 @@ filename = "changelog.md"
start_string = "<!-- towncrier release notes start -->\n"
underlines = ["", "", ""]
template = "changelog.d/changelog_template.jinja"
title_format = "## {version} - {project_date}"
title_format = "## [{version}] - {project_date}"
issue_format = "[issue#{issue}](https://github.com/ciur/papermerge/issues/{issue})"

[[tool.towncrier.type]]
Expand Down

0 comments on commit de7c135

Please sign in to comment.