บล็อก

Does Compressing an Image Remove Its Metadata?

2 พฤศจิกายน 2569

ลบข้อมูลเมทาดาทาของรูปภาพทำงานในเบราว์เซอร์ของคุณ: ฟรี ไม่ต้องอัปโหลด ไม่มีลายน้ำ

Short answer: sometimes, by accident, and never in a way you should rely on. If your goal is to share a photo without your camera model, timestamp or GPS coordinates riding along, compressing it is not a privacy step — the only dependable fix is to deliberately strip the metadata from the image and then verify it is gone.

Here is what actually happens to EXIF data when you run a photo through the usual processing steps.

What image metadata actually is

Most photos carry an EXIF block: camera make and model, lens, shutter speed, ISO, the exact date and time the shutter fired, software used to edit it, orientation, and — if location services were on — latitude and longitude accurate to a few metres. Phones add more: device name, sometimes a serial-ish identifier. Edited files can also carry IPTC and XMP blocks with captions, copyright, keywords and editing history.

None of that is part of the image pixels. It sits in separate chunks at the front of the file, which is exactly why resizing or recompressing the pixels does not automatically touch it.

Does compression remove EXIF?

It depends entirely on the tool.

  • Lossless optimisers (the kind that squeeze a JPEG without re-encoding it) usually keep every metadata block intact by default. Some have a "strip metadata" checkbox; many have it off.
  • Quality-based recompressors re-encode the image and then often copy the original EXIF block back into the new file, because photographers want their camera settings preserved.
  • Browser canvas-based tools — including the image compressor here on cutbg — redraw the picture into a canvas and export a fresh file. The original EXIF block is not carried over, so it is effectively dropped. That is a useful side effect, not a guarantee you should build a privacy habit on.

The practical rule: never assume. Two tools that both say "compress JPEG" can produce one file with GPS coordinates and one without.

What about resizing, cropping and rotating?

Same story. Resizing changes pixel dimensions; the EXIF block is a separate passenger. Plenty of desktop editors will happily shrink a 12 MP photo to 800 px wide and keep the GPS tag untouched. Cropping is identical — you removed part of the frame, not the file header.

Rotation is the odd one out. Many photos are stored sideways with an EXIF orientation flag telling the viewer to turn them. If a tool strips metadata but ignores that flag, the picture comes out rotated. Good tools bake the rotation into the pixels first. If a photo lands sideways after processing, fix it with the rotate and flip tool rather than hunting for the original.

Does converting the format strip it?

Partly. Converting HEIC to JPG, or PNG to JPG, often carries metadata across — HEIC files from iPhones are packed with EXIF, and most converters preserve the date and location so your photo library stays sorted. PNG does not use the classic EXIF structure, but it has text chunks and a modern eXIf chunk, so "convert to PNG" is not a cleaning step either. If you convert through an in-browser image converter that re-renders the image, the extra blocks typically do not survive — but again, check.

The only reliable workflow

  1. Open the file in the EXIF viewer and see what is actually in it. Look for GPS, DateTimeOriginal and camera model.
  2. Run it through a tool that explicitly removes metadata, not one that might.
  3. Open the output in the EXIF viewer again. If the GPS and timestamp fields are empty, you are done.

That verification step takes five seconds and is the difference between "probably clean" and "clean".

Social networks do strip most EXIF when they re-encode uploads, but by then their servers already have the original. For anything you email, post to a forum, attach to a listing or send to a client, clean it yourself first with the metadata remover. Everything on cutbg runs inside your browser — the photo is never uploaded, there is no account, and the file with your home coordinates in it never leaves your device.

ลบข้อมูลเมทาดาทาของรูปภาพทำงานในเบราว์เซอร์ของคุณ: ฟรี ไม่ต้องอัปโหลด ไม่มีลายน้ำ