DEV Community

Ahsan Iqbal Pitafi
Ahsan Iqbal Pitafi

Posted on Originally published at Medium

How to Compress a Photo Under a Specific KB Limit on Android

How to get a photo below a strict KB limit

Many government portals, job forms, school applications, and support websites reject an otherwise valid photo because it is larger than a fixed limit such as 100 KB or 200 KB. Standard gallery apps usually offer cropping or a quality percentage, but they do not tell you whether the final file will meet a specific upload limit.

That is the problem I built FormFit to solve on Android.

Why exact-KB compression is tricky

File size depends on more than width and height. Image detail, color variation, output format, and compression quality all affect the result. A quality setting that works for one photo may leave another photo far above the required size.

FormFit works toward a maximum KB target and adjusts the generated copy for you. The practical goal is to create a file at or below the limit while keeping it as clear as possible.

Compress a photo on Android

  1. Install FormFit from Google Play.
  2. Open the photo-compression tool and select the image you need to upload.
  3. Enter the maximum file size required by the website or form.
  4. Optionally resize the image dimensions or choose JPG, PNG, or WebP for the generated copy.
  5. Run the compression, review the result, and save or share the new file.

The original photo is not replaced. FormFit creates a separate output copy, so you can compare the result before uploading it.

Remove metadata from generated copies

Photos can contain metadata such as device or capture information. When you only need to submit the visible image, FormFit can remove metadata from the generated copy. This does not change the original file.

Turn several photos into one PDF

Some forms ask for a single PDF instead of multiple image files. FormFit can combine up to 20 selected photos into one PDF directly on the phone. This is useful for receipts, scanned notes, application documents, and other small document sets.

On-device processing

The selected photos and PDFs are processed on the Android device. FormFit does not require a FormFit account or upload files to a FormFit server. The app is free and supported by ads.

A practical tip

If a website requires both a small file size and specific dimensions, resize the dimensions first and then apply the KB target. Reducing unnecessary pixel dimensions gives the compressor more room to preserve visible quality.

You can download FormFit here:

FormFit: Photo & PDF Tools on Google Play

I built the app, and constructive feedback is welcomeβ€”especially about the exact-KB compression and photos-to-PDF workflows on different Android devices.

This tutorial was also published on Medium.

Top comments (0)