{
  "id": 18466595,
  "title": "Lossless PNG optimizing saved 11.4% on transparent icons and 24.8% on photos",
  "url": "https://urgent.news/2026/11/06/lossless-png-optimizing-saved-11-4-on-transparent-icons-and-24-8-on",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-06T08:08:17.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/token111/lossless-png-optimizing-saved-114-on-transparent-icons-and-248-on-photos-4cad"
  },
  "original_language": "en",
  "account": "A lossless PNG optimizer, such as oxipng, can achieve significant reductions in file size without altering the image's visual quality. In a test conducted on 2026-11-05, the optimizer saved 11.4% on transparent app icons and 24.8% on photos from Wikimedia Commons. However, the gap between the savings for photos and transparency was not due to oxipng being better at one format over the other. Instead, the optimizer utilizes two techniques: recompression and reduction. Recompression involves selecting different row filters and squeezing the deflate algorithm harder, while reduction entails rewriting the image in a cheaper color type when possible, such as dropping an alpha channel or converting to a palette when the image has 256 colors or fewer.\n\nIn the case of the transparent images, reductions contributed no significant savings, as there were no opportunities for dropping alpha channels or switching to a palette. Instead, the optimizer focused on recompression, which brought the file sizes from 444,175 bytes to 444,175 bytes. On the photo PNGs, reductions contributed 18.3% to the total saving, amounting to 24.8%. Two of the three photos were in RGBA format with an alpha value of 255 in every pixel, while the third was grayscale with only 222 colors. The grayscale photo saw a 58.9% reduction in file size, while the other two photos reduced by 14.5%.\n\nThe study concluded that lossless tools like oxipng do not work better on photos in general. Photos that are saved as true RGB with thousands of colors are unlikely to benefit from reductions, just like the photos in this test. Instead, quantizing the photo to a palette with pngquant --quality=65-80 can achieve significant reductions, especially when paired with a subsequent lossless optimization. A cheap check before running a lossless optimizer is to examine the color type and alpha range, then run the optimizer once with --nx and once without to determine the source of the savings.",
  "summary": "My capstone project has a folder of PNG assets: app icons and stickers with soft transparent edges, plus a few photos that someone exported as PNG. A lossless optimizer like oxipng doesn't touch pixels, so it is tempting to expect it to save roughly the same share on every file. On 2026-11-05 I ran it on 12 PNGs from Wikimedia Commons, on an Apple M4 Mac. It saved 11.4% on the 6 transparent…",
  "key_points": [
    "Lossless PNG optimizer oxipng achieved 11.4% reduction on transparent icons",
    "Optimizer saved 24.8% on photos from Wikimedia Commons",
    "Reduction techniques include recompression and color type reduction"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}