The Task

My spouse is applying for an education loan for an Executive MBA through the PM Vidyalaxmi portal. My role was the family’s tech support: get every document scanned, sized and accepted by the portal. Like most Indian government portals, it wants every document uploaded under a strict limit – 200 kB per file, photos only as .jpeg or .png – and it gives you very little help when something is rejected.

The list looked simple:

Portal documentWhat I uploadedOriginal sizeFinal size
10th Mark sheet10th mark sheet scan~5 MB JPEG172 kB PDF
12th Mark sheet12th mark sheet scan~5 MB JPEG175 kB PDF
Proof of Admission to the courseAdmission letter112 kB PDF112 kB (already under the limit)
Schedule of Expenses for the courseInstitution’s fee structure271 kB PDF90 kB PDF
Applicant PhotoMy spouse’s photo89 kB JPEG46 kB JPEG (fixed header)
Parent PhotoMy photo (the UI labels the spouse as “parent”)85 kB JPEG45 kB JPEG (fixed header)
Applicant Identity ProofAadhaar663 kB PDF190 kB PDF
Applicant Address ProofSame Aadhaar663 kB PDF190 kB PDF

Before any of that, I needed a working scanner. Being the one with the Mac and the printer, I did the whole thing in two Claude Code sessions in the Claude desktop app on my Mac this morning, both running Claude Opus 5.5 at medium effort. This post is a log of what actually happened, and an honest estimate of how long each step would have taken me in the pre-AI era.

Step 0: The Scanner That macOS Forgot

The problem: I hadn’t used the scanner since moving to a new Mac. My HP LaserJet Pro MFP M126nw was plugged in over USB and printing fine, but Preview had no Import from Scanner option.

What the agent did:

  1. Diagnosed it in two commands. It ran system_profiler and lpstat and listed the Image Capture driver folders. The printer was visible on USB, printing used the generic driver, but /Library/Image Capture/Devices/ was empty. The M126nw is too old for driverless (AirScan/eSCL) scanning, so without an HP scan driver macOS simply doesn’t offer it.
  2. Hit the wall. Apple’s HP Printer Drivers package refused to install: “This update requires macOS version 15.0 or earlier.” I’m on macOS 26. HP hasn’t shipped a newer driver for this model. The agent did suggest HP Smart from the App Store as an alternative, but my App Store account had signed out, and I didn’t have time to recover a password I rarely use.
  3. Went around the installer, not around security. The installer only blocks on a version check. The agent expanded the .pkg with pkgutil --expand, unpacked the payload, and found HP Scanner 3.app – still Apple-signed, and listing the M126nw as a supported model. It’s an Intel binary, so it runs under Rosetta.
  4. Installed only what was needed. Instead of the full 875 MB package, it wrote a small script that copied the scanner bundle into /Library/Image Capture/Devices/ and 43 MB of HP support frameworks into /Library/Printers/hp/Frameworks, then verified the code signature. I ran the sudo step myself – the agent never touched my password.

After a USB replug, Image Capture showed the scanner as “M125” – HP uses one driver for the M125/M126/M127 family and names it after the first model. A test scan worked, and Preview’s Import from Scanner came back.

Pre-AI (my estimate)With AI
Diagnose why Preview can’t see the scanner30-60 min of forum threads1 min
Find out the driver is blocked on macOS 26 and what to do30-60 min1 min
Expand the package, find the right bundle and its dependencies1-2 hours (if I’d even try)2 min
Total2-4 hours, or give up and photograph the documents on my phone~5 min of my time

Honestly, before AI I would most likely have given up at the version-check error and just photographed the documents on my phone, accepting skewed, unevenly lit captures. Knowing that a .pkg is just a XAR archive with a cpio payload is something I’d have had to discover, not recall.

Step 1: 10th and 12th Mark Sheets – JPEG to PDF Under 200 kB

The problem: The scanned 10th and 12th mark sheets, each about 5 MB at ~2000 px wide, on that busy security-print background that compresses terribly.

What the agent did: Using only sips (Scriptable Image Processing System, the image resize and convert command-line tool that ships with every Mac), it tried several width/quality combinations close to the limit, looked at the rendered results to check the small print was still legible, and picked the best fit for each:

Portal documentOriginalFinalSettings
10th Mark sheet~5 MB JPEG172 kB1300 px wide, colour
12th Mark sheet~5 MB JPEG175 kB1450 px wide, colour (more headroom)

It even noted the edge case: if the portal counts 200 kB as 200,000 bytes, both still pass.

Pre-AI: 20-40 minutes. I’d have tried retaking them as phone photos, then fiddled with local command-line tools and their flags to get the size down without losing the small print. With AI: about 3 minutes.

Step 2: Proof of Admission – Nothing to Do

The admission letter was a 112 kB PDF straight from the institution, already under the limit. It went up as-is.

Step 3: Schedule of Expenses – The Font Was the Problem

The problem: The institution’s fee structure, a 271 kB text-only PDF. Nothing visibly heavy in it.

What the agent did: It parsed the PDF’s object streams and found the real cause: the file embedded the entire Calibri font – about 185 kB of the 271 kB. And the document used only 18 Calibri characters, all in one “Annexure VI” label.

So it subset the font to just those glyphs and left everything else untouched. Result: 90 kB. Then it verified two ways:

  • Both versions rendered to images were pixel-for-pixel identical.
  • The extracted text matched exactly, so it stayed selectable and searchable, and the embedded link still worked.

Pre-AI: This is the one I’d never have solved properly. I’d have tried local command-line tools that rasterize everything into a blurry image – or printed and re-scanned it. Finding a bloated embedded font means opening a PDF’s internals, which I’ve never needed to do. Realistically 45-90 minutes for a worse result. With AI: 2 minutes, for a better-than-original file.

Step 4: Applicant and Parent Photos – “Not a Valid PNG or JPEG”

The problem: The portal rejected both photos – my spouse’s for Applicant Photo and mine for Parent Photo (the UI labels the spouse as “parent”) – with “Not a Valid PNG or JPEG”, even though file said they were real JPEGs with a .jpeg extension, and the form said “Only .jpeg or .png”.

What the agent did: It read the first bytes of each file:

Original:  FF D8 FF E1 ... Exif   (camera/Exif header)
Expected:  FF D8 FF E0 ... JFIF   (standard JFIF header)

Strict upload validators often check only for the JFIF marker. It re-saved each photo as a clean JFIF JPEG with the camera metadata stripped (46 kB and 45 kB, visually identical) plus a pixel-identical PNG as a backup, and gave me a cp -n command that copied them next to the originals without overwriting anything.

Pre-AI: 30-60 minutes. I’d have renamed .jpeg to .jpg, re-exported from Preview, cropped, resized… and maybe stumbled on a version that worked without ever learning why. With AI: about 6 minutes, and I know the reason.

Step 5: Identity and Address Proof – Compress the Aadhaar, but Don’t Break the QR

The problem: One 663 kB e-Aadhaar PDF serves as both Applicant Identity Proof and Applicant Address Proof. This one is sensitive in two ways: it’s an identity document, and its QR codes must still scan after compression, or the document is useless for verification.

What the agent did:

  • Kept it local. Everything ran on my Mac, nothing was committed, and the agent deleted its working copies afterwards.
  • Inspected each embedded image and chose a different treatment for each:
    • Orange/green header banners and strips → JPEG at ~175 dpi instead of 300
    • The Tamil/English information panel (only black, red and white) → an 8-colour palette, which keeps text crisp and is far smaller than JPEG
    • Photo, seal and both QR codes → left untouched
  • Result: 190 kB (190,474 bytes) – under 200 kB whether the portal counts 1,000 or 1,024 bytes per kB.

Then I asked it to prove nothing was broken. It went further than I would have:

  1. QR decoding. It decoded all four QR codes (front and back, original and compressed) with macOS’s built-in Vision barcode reader and compared fingerprints of the data rather than printing anyone’s Aadhaar details. All four matched.
  2. Checksum. It gave me a SHA-256 to run on the file I’d moved, so I knew the file I’d upload was exactly the one it tested.
  3. Structure diff. Same 66 PDF objects, same page size; text, fonts and placement instructions byte-identical once decompressed.
  4. Alignment check. It rendered both at ~290 dpi and tested whether shifting the new one by up to 3 px in any direction matched the original better. For every region, the best match was zero shift.
  5. Pixel diff by region. Name, address, number, photo and QR codes: no difference. Only 0.02% of pixels differed noticeably, all in the decorative banners.

Pre-AI: Compressing it at all: 30-60 minutes of trial and error across several local command-line tools (an Aadhaar is not something I’d hand to an online compressor), learning each one’s flags as I went. The verification – QR decoding, alignment search, per-region diff – I simply would not have done. I’d have eyeballed it and hoped. Call it 1-2 hours, with far less confidence. With AI: about 5 minutes across three requests.

The Scorecard

StepPre-AI estimateWith AIWhat AI added beyond speed
Step 0: HP scanner driver on macOS 262-4 hours (or settle for phone photos)~5 minA fix I didn’t know was possible
Step 1: 10th and 12th Mark sheets20-40 min~3 minReadability checked at each step
Step 2: Proof of Admission––Already under the limit
Step 3: Schedule of Expenses45-90 min~2 minText stayed sharp; pixel-identical output
Step 4: Applicant and Parent photos30-60 min~6 minRoot cause (Exif vs JFIF), not a lucky guess
Step 5: Identity and Address Proof (Aadhaar)1-2 hours~5 minQR decode, alignment and checksum proof
Total~5-9 hours~20 min of agent time, ~35 min of mine

My time includes reading the replies and running the commands that needed me.

Overall Time Saved

Pre-AI times are the midpoint of my estimate for each step.

{
  "title": {"text": "Minutes per Step: Pre-AI Estimate vs With AI", "left": "center", "textStyle": {"color": "#888", "fontSize": 15, "fontWeight": 600}},
  "tooltip": {"trigger": "axis", "axisPointer": {"type": "shadow"}},
  "legend": {"bottom": 0, "data": ["Pre-AI (estimate)", "With AI"], "textStyle": {"color": "#888"}},
  "color": ["#94A3B8", "#2563EB"],
  "grid": {"left": "3%", "right": "8%", "top": "12%", "bottom": "12%", "containLabel": true},
  "xAxis": {"type": "value", "name": "minutes", "axisLabel": {"color": "#888"}, "splitLine": {"lineStyle": {"color": "rgba(136,136,136,0.2)"}}},
  "yAxis": {"type": "category", "inverse": true, "axisLabel": {"color": "#888"},
    "data": ["Scanner driver", "10th + 12th mark sheets", "Schedule of Expenses", "Photos", "Aadhaar"]},
  "series": [
    {"name": "Pre-AI (estimate)", "type": "bar", "data": [180, 30, 68, 45, 90], "label": {"show": true, "position": "right", "color": "#888"}},
    {"name": "With AI", "type": "bar", "data": [5, 3, 2, 6, 5], "label": {"show": true, "position": "right", "color": "#888"}}
  ]
}

Adding it all up, the whole job comes to roughly 7 hours without AI versus about 20 minutes with it:

{
  "title": {
    "text": "Whole Job: Without AI vs With AI (minutes)",
    "left": "center",
    "textStyle": {
      "color": "#888",
      "fontSize": 15,
      "fontWeight": 600
    }
  },
  "tooltip": {
    "trigger": "axis",
    "axisPointer": {
      "type": "shadow"
    }
  },
  "legend": {
    "bottom": 0,
    "data": [
      "Scanner driver",
      "10th + 12th mark sheets",
      "Schedule of Expenses",
      "Photos",
      "Aadhaar"
    ],
    "textStyle": {
      "color": "#888"
    }
  },
  "color": [
    "#2563EB",
    "#10B981",
    "#F59E0B",
    "#8B5CF6",
    "#EF4444"
  ],
  "grid": {
    "left": "3%",
    "right": "6%",
    "top": "14%",
    "bottom": "18%",
    "containLabel": true
  },
  "xAxis": {
    "type": "value",
    "name": "minutes",
    "axisLabel": {
      "color": "#888"
    },
    "splitLine": {
      "lineStyle": {
        "color": "rgba(136,136,136,0.2)"
      }
    }
  },
  "yAxis": {
    "type": "category",
    "inverse": true,
    "axisLabel": {
      "color": "#888"
    },
    "data": [
      "Without AI\n~413 min (~7 h)",
      "With AI\n~21 min"
    ]
  },
  "series": [
    {
      "name": "Scanner driver",
      "type": "bar",
      "stack": "total",
      "data": [
        180,
        5
      ],
      "barWidth": "45%"
    },
    {
      "name": "10th + 12th mark sheets",
      "type": "bar",
      "stack": "total",
      "data": [
        30,
        3
      ],
      "barWidth": "45%"
    },
    {
      "name": "Schedule of Expenses",
      "type": "bar",
      "stack": "total",
      "data": [
        68,
        2
      ],
      "barWidth": "45%"
    },
    {
      "name": "Photos",
      "type": "bar",
      "stack": "total",
      "data": [
        45,
        6
      ],
      "barWidth": "45%"
    },
    {
      "name": "Aadhaar",
      "type": "bar",
      "stack": "total",
      "data": [
        90,
        5
      ],
      "barWidth": "45%"
    }
  ]
}

What Made It Work

1. The agent works with real tools, not just advice. It didn’t tell me “try compressing the PDF” – it opened the PDF, found the font, fixed it and checked the result. Everything used tools already on a Mac: sips, pkgutil, codesign, Vision, Python’s standard library. No new installs, no online uploads.

2. Verification is now cheap enough to actually do. This is the part I value most. Pre-AI, “check that the QR still scans” meant holding up a phone to the screen. Here I got decoded-data fingerprints, a 3 px alignment search and a per-region pixel diff in about a minute. When checking costs almost nothing, you check everything.

3. Sensible guardrails held up. macOS privacy controls blocked the agent from reading my Documents folder, so I copied files into the project folder myself, and the originals were never touched. Every sudo and every move into Documents was a command I ran. It never asked for the Aadhaar password, avoided printing identity data, and cleaned up its working copies.

4. I stayed in charge. When I said “keep the original files, don’t remove them”, it adjusted the command. When I asked for a closer comparison, it went deeper. The agent did the digging; I made the calls.

Closing Thoughts

None of this is glamorous engineering – it’s the boring paperwork that sits between your family and an application, and in most households it lands on whoever is “good with computers”. But that’s exactly where the time goes. Each step needed niche knowledge (pkg internals, PDF font embedding, palette quantization, JPEG markers) that I’d use once a year at best and would have to relearn every time.

AI didn’t just make me faster; it made the right fix the easy one. Before, I’d have settled for “small enough and looks OK”. This time I got smaller files that I could prove were correct.

I could have saved some more time if I hadn’t cropped the scanned images by hand initially.

AI isn’t just for software projects. It shines even at mundane chores like preparing files for restrictive portals. Doing computer work the pre-AI way is now a choice, and an expensive one. Default to AI.

How I Wrote This Post with AI

This post was written the same way. In a third Claude Code session (again Claude Opus 5.5, medium effort), I asked for a technical blog on the morning’s work. The agent:

  • Read the transcripts of the two earlier sessions from disk and pulled out the timeline, the commands, the file sizes and the verification results.
  • Read this site’s agent guidelines and tag list, so the post followed the existing format and tags.
  • Drafted the post, ran a local Hugo server and gave me a preview URL.

My part was the review: more than twenty rounds of corrections. Some were framing (I was providing tech support for my spouse’s application, not applying myself), some were structure (follow the portal’s own document order and names), and some were facts only I knew: I didn’t take breaks, I never considered buying VueScan, and the App Store sign-out was why HP Smart wasn’t an option. The agent wrote; I kept it accurate.

Writing a post like this by hand – reconstructing the steps, sizes and timings from memory and shell history, building the tables and checking every number – would have taken me 6-8 hours. Honestly, without AI I may not have written this post at all. With AI it took about an hour, nearly all of it my own reviewing and refining. Ironically, I spent more time writing about the work than doing it.