Inside JPEG, PNG & WebP Metadata: Removing GPS Without Re-Encoding
Drawing a photo onto an HTML canvas and saving it again strips EXIF, but also re-quantizes JPEG DCT blocks — causing generation loss. True lossless scrubbing excises metadata markers directly at the container byte level.
Container Byte Markers Removed by HavenPix
In a baseline JPEG stream, compressed image pixels live after the Start of Scan (0xFFDA) marker. Everything before 0xFFDA consists of framing segments. Excising APP1 (0xFFE1) and APP13 (0xFFED) while preserving DQT, DHT, SOF, and APP2 ICC color profiles yields an identical pixel bitstream with zero privacy leaks.
| Format | Metadata Chunks Removed | Color / Pixel Data Preserved | Quality Loss |
|---|---|---|---|
| JPEG (.jpg) | APP1 (EXIF & XMP), APP13 (IPTC), COM (0xFFFE) | SOS bitstream + APP2 ICC_PROFILE | 0% (Bit-exact pixels) |
| PNG (.png) | eXIf, tEXt, zTXt, iTXt, tIME | IHDR, iCCP, sRGB, IDAT | 0% (Lossless) |
| WebP (.webp) | RIFF EXIF & XMP chunks + VP8X bitflags | VP8 / VP8L / ALPH / ICCP | 0% (Bit-exact) |
Test it live on your own image
Open HavenPix Studio →