<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Umair Tahir]]></title><description><![CDATA[https://formkb.com]]></description><link>https://mernumair.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Sat, 21 Nov 2026 20:21:06 GMT</lastBuildDate><atom:link href="https://mernumair.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[I built a free, offline photo resizer for Pakistani government forms (FPSC, PPSC, NADRA) — here's what the forms actually require]]></title><description><![CDATA[FPSC 30 KB, PPSC 25 KB, passport 350x467 px: a free browser tool that resizes photos to each Pakistani form's official limit, no upload.]]></description><link>https://mernumair.hashnode.dev/i-built-a-free-offline-photo-resizer-for-pakistani-government-forms-fpsc-ppsc-nadra-here-s-what-the-forms-actually-require</link><guid isPermaLink="true">https://mernumair.hashnode.dev/i-built-a-free-offline-photo-resizer-for-pakistani-government-forms-fpsc-ppsc-nadra-here-s-what-the-forms-actually-require</guid><category><![CDATA[Web Development]]></category><category><![CDATA[JavaScript]]></category><category><![CDATA[Next.js]]></category><category><![CDATA[tools]]></category><category><![CDATA[pakistan]]></category><dc:creator><![CDATA[Mern-Umair]]></dc:creator><pubDate>Mon, 02 Nov 2026 19:20:32 GMT</pubDate><content:encoded><![CDATA[<p>Every government form in Pakistan has a different photo rule, and none of them explain it well: FPSC wants a JPG under 30 KB, PPSC under 25 KB, Pak Navy under 20 KB, the passport portal 350x467 pixels. A phone photo is 3 MB. Thousands of applications fail at the upload step every week.</p>
<p>So I built FormKB (<a href="https://formkb.com">https://formkb.com</a>), a set of browser-only tools: the photo never leaves the device (Canvas API, no upload), and each form has a preset read from the organisation's own guidelines PDF, quoted on the page.</p>
<p>A few things I learned building it:</p>
<ol>
<li><p>The limits on blogs are often wrong. I read the official documents and found PPSC's "140x177" and NTS's "50 KB" repeated everywhere without a source. Every preset on the site links the PDF it came from: <a href="https://formkb.com/photo-size-requirements">https://formkb.com/photo-size-requirements</a></p>
</li>
<li><p>"KB" is not a pixel size. People search "20 KB photo size in pixels" constantly, so I wrote the conversion down with a table instead of a formula that doesn't exist: <a href="https://formkb.com/guides/kb-to-pixels">https://formkb.com/guides/kb-to-pixels</a></p>
</li>
<li><p>Binary search on JPEG quality beats guessing. The resizer picks the largest pixel size and quality that still fits under the limit, in the browser, usually in under a second.</p>
</li>
<li><p>The same engine works for other countries' forms once you have the official spec: UK passport (600x750 px, 50 KB–10 MB), Bangladesh Teletalk (300x300 under 100 KB), India's JEE Main (10–200 KB): <a href="https://formkb.com/jee-main-photo-signature-size">https://formkb.com/jee-main-photo-signature-size</a></p>
</li>
</ol>
<p>Stack: Next.js static export on Cloudflare, no backend, no analytics. Tests run the real tools in headless Chrome against the stated limits (252 checks).</p>
<p>If you've fought a government upload form, I'd like to hear which one; the next presets come from those stories.</p>
]]></content:encoded></item></channel></rss>