abox.tools

Language: English

How to get phone photos ready for the web

A phone photo is the wrong format, four times too large, and knows where you live. Getting it postable is a short pipeline — convert, frame, compress — and every step of it runs on your own machine, which is exactly where photos with your GPS in them belong.

View as Markdown

The short answer

  1. iPhone photos first: run any HEIC files through the HEIC converter, and choose to leave the metadata out. It tells you, before converting anything, which photos are carrying GPS coordinates. Photos that are already JPEG skip this step.
  2. Frame and size: drop the batch on the Image Resizer. Set a long edge — 1600 pixels suits most pages, 2000 if readers will zoom — or crop the whole batch to one aspect ratio in a click.
  3. Hit the budget: finish in the Image Compressor, which takes a target in kilobytes rather than a quality slider, and hands a batch back as one zip.

Everything runs in your browser. The originals — full resolution, GPS and all — never leave your machine, which is the point of doing this locally rather than through a converter site.

A blog gallery and a product catalogue spend their pixels differently

A blog post or shared gallery. Measure the widest place the picture will be displayed, then choose enough pixels for the screen densities you serve. Set a per-image byte budget and inspect faces, skies and fine texture in the finished page. The sizes above are starting points, not universal limits.

Product cards with consistent framing. Crop to the card's ratio in the resizer, then look through every picture; one shared crop can cut the edge off a differently positioned product. Pad to an exact frame when every edge must stay visible. Keep a separate larger copy for the product's zoom view rather than stretching the thumbnail.

Diagrams and screenshots in the same post. Use PNG or confirmed lossless WebP for small text and hard edges, and JPEG or lossy WebP for photographs. The PNG to WebP converter reports whether the browser actually wrote lossless coding. Check the smallest text on the page, not just the file's size.

Where the metadata goes

The quiet risk in a phone photo is not the pixels; it is the tags. EXIF metadata records the camera, the timestamps, and — on nearly every phone — the GPS coordinates of where the photo was taken. Post it and you may be publishing your home address in a form any viewer can read.

Files that are actually resized or compressed are redrawn from pixels without copying the original tags. But both tools return an already suitable file unchanged: a small photo that needs neither step can still carry its EXIF and GPS. Inspect the final copies before publishing, and use the EXIF Viewer & Remover when you need to clean those unchanged files. Two decisions remain:

Why resize before compressing

Because pixels are the budget. A 12-megapixel photo squeezed hard enough to fit a 300 KB slot looks visibly worse than a 2-megapixel photo compressed gently into the same slot — the same kilobytes are spread over six times the area. Deciding the display size first lets the compressor spend its budget on quality instead of on resolution nobody will see.

The compressor will resize on its own when there is no other way to reach the target, but it treats that as a last resort. Doing the framing yourself in the resizer keeps the decision — what to crop, which edge matters — where it belongs.

The resizing guide and the compression guide each go deeper on their half, including what the quality numbers actually measure.

The Image Resizer set to resize by longest side, with 1600 entered, and preset long edges beside it.
The long edge first, because it is the one setting that treats a portrait and a landscape photograph the same way.

The whole batch at once

Each tool in the chain takes a folder's worth of files in one drop: the converter does every HEIC including bursts, the resizer can put one framing across the whole set or let you crop each photo differently, and the compressor returns the lot as a single zip. Twenty photos cost barely more of your attention than one — the machine time is your machine's, and it is quicker than any upload would have been.

Three result rows, each showing a photograph reduced from megabytes to about 150 kB, with the quality each one landed on.
And the quality second, over the whole batch at once. The order matters: the section above says why.

If you do this every week

The pipeline lives on three or four pages here on purpose — each page does one job, and each proves on its own that nothing leaves your machine. But every step is open source: MIT-licensed, one folder per tool, dependency-free ES modules with READMEs that explain the decoder, the resampler and the size-target search.

If your photos take the same shape every time — same long edge, same budget, same strip-the-tags — point a coding agent at the repository and ask it to compose those modules into a single drop zone with your presets baked in. The modules were written to be read, and lifting them is what the licence is for.