Exact-KB packing for portals that will not budge
Upload forms that say “max 50 KB” or “photo must be under 100 KB” waste hours when desktop exporters only expose quality percentages. You export at 60%, still too big; 40%, ugly; 35%, finally accepted—maybe. LocalKit targets bytes directly with presets for the limits we see most often: 20, 50, 100, and 200 KB, plus a custom field for everything else.
Algorithm (plain language)
1) Scale the image to your chosen width and height (aspect lock optional). 2) Binary-search JPEG quality until the blob is ≤ the target byte size. 3) If the file is still over at minimum quality, downscale dimensions and repeat. You always see the achieved size in the preview before downloading. This is the flagship differentiator versus generic “compress” sites that only offer a slider—and still require uploads.
Practical tips for visa, insurance, and job portals
Read the portal’s pixel guidelines if any (for example, 600×600). Set dimensions first, then pick the KB preset. Strip EXIF beforehand if the form rejects geotagged files—some validators are picky. Keep the original master; lossy packing is one-way. If a 20 KB target on a detailed photo lands slightly over, reduce width manually and run again.
Privacy
ID photos, medical images, and signed documents often face the strictest size rules—and are the worst files to upload to a random compressor. LocalKit keeps those pixels on-device. CDN scripts load encoder helpers only; your document is never POSTed.
Related tools
Convert HEIC first if needed, strip EXIF, then pack to KB. ZIP multiple packed outputs with ZIP / Unzip when a portal wants a single archive of supporting images.