Repository navigation
feat(image-padding): calibration by default, phone-frame fix, one-screen redesign - #24
Merged
Rushabhshroff merged 2 commits intoDec 3, 2026
Conversation
Screenshots from the App Live dashboard can include the dark phone frame, and PadFit then picked the whole screen as the viewfinder. PadFit now crops to the screen inside the frame first. Some apps show a different part of the camera image in the viewfinder than the box position on screen suggests (SITA Kenya eTA: box at about 17-46% of the screen, shows 32-66% of the image). Optional calibration: inject a colour grid, screenshot the camera screen, and PadFit reads which part of the image the viewfinder shows, then places the subject there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
Rename PadFit to Image Padding Tool and make calibration the default flow. The tool now takes two inputs: the app screenshot and the image to inject. If the screenshot shows the injected calibration grid, the tool reads it and places the subject where the app reads the camera image. If it does not, the tool falls back to the viewfinder on screen. The calibration grid is now a fixed 1080x1920 image, so one download works for every app, and a calibrated output has that size. Layout: a single page with no scrolling. A step-by-step guide sits on the left. The screenshot, image and output panels are upload targets. The output panel is where the user checks the result and moves or resizes the image. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
harshitshah4
marked this pull request as ready for review
December 3, 2026 14:15
Rushabhshroff
approved these changes
Dec 3, 2026
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.
Image Padding Tool (was PadFit,
docs/tools/image-padding/index.html): calibration is now the default flow, the App Live phone frame no longer breaks viewfinder detection, and the page is redesigned as one screen.Why. Some apps show a different part of the camera image in the viewfinder than the box position on screen suggests. In the SITA Kenya eTA app, the scan box sits at about 17–46% of the screen height but shows rows 32–66% of the injected image. So the tool put the passport in the wrong place and the scan failed. Screenshots from the App Live dashboard can also include the dark phone frame, which made the tool pick the whole screen as the viewfinder.
What changes
Testing
Limits
🤖 Generated with Claude Code