Repository navigation
feat(ocr): take sillybos 3, which refuses rare codings and the PDF features a scan never has - #91
Merged
Merged
Conversation
…atures a scan never has The pin was `>=0.1,<1` since the switch, so Tetrak OCR had none of the checks sillybos gained after 0.1: the JPEG frame codings, TIFF compression, layout and colour names, PNG colour types and depth, the metadata ceiling, and now the PDF features (JavaScript, forms, attached files, launch actions). `>=3,<4` brings them all; the limits this module sets (pixels, pages, render dpi) are unchanged, and sillybos's reasons reach triage as before. A test proves a PDF carrying JavaScript is now refused through check_pdf. Co-authored-by: Yvette Mankerian <yvettekm@gmail.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Deploying tetrak with
|
| Latest commit: |
66575ed
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://0db9382a.tetrak.pages.dev |
| Branch Preview URL: | https://fix-sillybos-3.tetrak.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
>=0.1,<1to>=3,<4. Tetrak OCR has been on 0.1.0 since the switch (feat(ocr): decide with sillybos before any decoder opens a scan #88), so it had none of the checks sillybos gained since: JPEG frame codings, TIFF compression, layout and colour names, PNG colour types and depth, the metadata ceiling, and now the PDF features (JavaScript, forms, attached files, launch actions; sillybos 3.0.0).check_pdfwith sillybos's reason.Brief 022, Tetrak OCR as sillybos's first user.
Test plan
tests/ocr/test_input_limits.pyagainst sillybos 3.0.0: 12 pass (one new)ocrmacpackage this venv lacks and are unrelated🤖 Generated with Claude Code