Skip to content

[Bug]: Minor Bug, YAML -env OCR_OUTPUT_DIRECTORY_YEAR_MONTH=0 is ignored #1544

@CaipaRinha

Description

@CaipaRinha

What were you trying to do?

Updated docker image today jbarlow83/ocrmypdf:latest

and it seems YAML statement

OCR_OUTPUT_DIRECTORY_YEAR_MONTH=0

is no longer respected or syntax has changed.
Before update output was posted to :/output now it is posted to :/output/2025/7.
I can't say which version exactly was used before, rough timeline would put it at around May 2025.

Complete YAML:

version: "3.3"
services:
ocrmypdf:
restart: unless-stopped
container_name: ocrmypdf
image: jbarlow83/ocrmypdf:latest
volumes:
- "/volume1/docker/ocrmypdf/scan2ocr:/input"
- "/volume1/docker/ocrmypdf/pfda:/output"
- "/volume1/docker/ocrmypdf/originals:/processed"
environment:
- OCR_ON_SUCCESS_ARCHIVE=1
- OCR_DESKEW=1
- 'OCR_JSON_SETTINGS={"skip-text": true, "l": "deu", "optimize": "1"}'
- OCR_OUTPUT_DIRECTORY_YEAR_MONTH=0
user: "1056:108"
entrypoint: python3
command: watcher.py

Where are you installing/running from?

Docker container

OCRmyPDF version

ocrmypdf --16.10.2

What operating system are you working on?

No response

Operating system details and version

No response

Simple sanity checks

  • Operating system is currently supported by its vendor (not end of life)
  • Python version is compatible with OCRmyPDF
  • This issue is not about a specific input file

Relevant log output


Metadata

Metadata

Assignees

Labels

triageIssue needs triage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions