Government job forms are oddly specific about photos. A typical application portal doesn't say "a small photo, please" β it says the photo must be 300 Γ 300 pixels and under 100KB , and the signature 300 Γ 80 pixels and under 60KB . A generic resizer gets you close on size and wrong on shape: it squashes a rectangular phone photo into a square, or hands back a signature photographed on lined paper with a grey, shadowy background. The form rejects it, and you start again β sometimes after filling in ten pages of the form.
We built a small tool that treats the form's numbers as a specification, not a suggestion: exact pixels, exact KB ceiling, the face centred in the frame, and a signature whose paper background is whitened before it is ever encoded.β¦