{"id":38020316,"url":"https://github.com/ansemjo/ocrallmypdf","last_synced_at":"2026-01-16T19:28:27.254Z","repository":{"id":40432162,"uuid":"200625403","full_name":"ansemjo/ocrallmypdf","owner":"ansemjo","description":"container image to run ocr processing on all files in inotify-watched directory","archived":false,"fork":false,"pushed_at":"2024-03-25T04:38:30.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-03-25T05:33:07.889Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ansemjo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-08-05T09:31:16.000Z","updated_at":"2024-04-15T03:27:09.147Z","dependencies_parsed_at":"2023-11-20T03:27:47.811Z","dependency_job_id":"ff9ff7c0-f1ac-4371-9d70-6afbddb8a9ea","html_url":"https://github.com/ansemjo/ocrallmypdf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ansemjo/ocrallmypdf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansemjo%2Focrallmypdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansemjo%2Focrallmypdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansemjo%2Focrallmypdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansemjo%2Focrallmypdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ansemjo","download_url":"https://codeload.github.com/ansemjo/ocrallmypdf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansemjo%2Focrallmypdf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28481726,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-16T19:28:26.537Z","updated_at":"2026-01-16T19:28:27.241Z","avatar_url":"https://github.com/ansemjo.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ocrallmypdf\n\nThis is a minimal wrapper around the `jbarlow83/ocrmypdf` container which\nadds an inotify-based directory watcher and automatically runs OCR processing\non all incoming files in the input directory.\n\nThink of this as a simplified version of [cmccambridge/ocrmypdf-auto](https://github.com/cmccambridge/ocrmypdf-auto),\nwhere `ocrallmypdf` is using the existing tools `incron` and `task-spooler`\nto achieve a similar effect.\n\n## USAGE\n\nUse your container runtime of choice and run:\n\n    docker run -d \\\n      -v /path/to/input:/input \\\n      -v /path/to/output:/output \\\n      ghcr.io/ansemjo/ocrallmypdf\n\nExisting files in the input directory are not processed. The processing only\ntriggers on `CLOSE_WRITE` and `MOVED_TO` events.\n\nThe container can be customized with a number of environment variables:\n\n| env | description | default |\n| --- | ----------- | ------- |\n| `INPUT` | watched input directory inside of the container | `/input` |\n| `OUTPUT` | output directory for processed file in the container, *be careful not to create an inotify loop by using the same directories!* | `/output` |\n| `OCR_OPTIONS` | options passed to `ocrmypdf` command | `--clean --deskew --output-type pdfa --skip-text` |\n| `OCR_LANGUAGE` | language used with tesseract (`-l` flag of `ocrmypdf`), missing languages will be installed on startup | `deu+eng` |\n| `REMOVE_ORIGINAL` | truthy value whether to remove original input files | `yes` |\n| `JOBS` | number of concurrent jobs in task spooler, *using too many at once may lead to ocr timeouts, since `ocrmypdf` uses all cores per process by default* | `1` |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansemjo%2Focrallmypdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fansemjo%2Focrallmypdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansemjo%2Focrallmypdf/lists"}