Menu

Exact Photo Sizes for Job Forms, in the Browser: Drag-Crop, Signature Whitening and a KB Budget
πŸ“°

Exact Photo Sizes for Job Forms, in the Browser: Drag-Crop, Signature Whitening and a KB Budget

DEV Community: javascriptΒ·Really OffersΒ·7 days ago
#PvJQApPJ
#devtojavascript#devto#dev#signature#crop
Reading 0:00
15s threshold

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.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.