logarithmic = softseguros, bojkovcanka, chocla, 089149021600, polilaminina, politicon, insticks, 5201314, бактопик, ufologue, malthevalleyqueen, 4698701, combina, 1921681231, 091000022, hezzbolah, mockery, chazos, chilimajo, 4112104, cormocor, euless, 3154349, 07013429656, إفران, термопанели, шакира, kurahousut, trwam, будмен, vinnarhålet, wooalong, 9316505179, harbringer, auhan, pocopia, behired, porter, cephalad, loopnet, orthok, اكراتين, dentalcoop, asistente, rancoeur, brudifarma, homiwoo, bilasztin, peachcourt, fulgrim, cholerzyn, pleosnite, pearsonpte, polievkovar, abington, stecato, 8935246914625, zanella, carboment, reescribir, cashchanger, 00100000, 0488249260, téligumi, machinist, iratmegsemmisítő, strumenti, undergrad, adrovance, 2103229004, thegamesmen, usrlazio, individuales, 9542761500, hüvelykrém, borab, žmones, belaz, lakstingala, 4302474, symlink, zalop, 3533982353, 300000, tanoke, diser, tandoo, conra, gimnospermas, sunseap, 9512432271, mirabellenmarmelade, kumade, menjunje, 3446166892, epikuros, chicharros, asketon, værtindegave, амитразин, edecan, 0120304054, bakal, hadrosaurus, theratussine, albrechtshof, الدور, kubaneh, bartschere, 05020165547, danicapension, inoculo, subetaza, visnjica, лютый, playtetris, activite, mayaman, soreda, jääkiekkokypärä, 1155350000, puentylizm, хангыль, ракетница, euromaterna, 2713916, diplomă, efast, огієнко, 2927569, calalou, grayce, letvice, спрей, 3512263892, hollandaisesås, embezzled, 0363865679, 4788467, зрелые, gorgeousmayaa, sindemia, dangdut, nacktfilme, 05057997785, dsill, 8778334675, lactoalbumina, tunfisk, dugàs, 7503007704658, parky, biotyspa, jblpro, 0342127158, микротрон, 08005008514, arielbb, syprinting, multifaceted, visitenkartenformat, fleischspieße, deshebrar, مجموع, classi, biosensores, risna, recibiste, lunchpaus, الرضاعه, 4407355100, orthin, stoelpoten, xskhoa, 18009218101, 0922789789, alcuza, pereg, наглядачі, 732202040, 7727458093741115587, hyllykannatin, 08086589604, binoid, vietnamwwork, animalistic, probowl, podzemlje, poisat, timebuck, handbalist, mtgreddit, xlightmoon, aretaeus, ευβοιατοπ, pitote, hilandar, 9562760312, novolux, дендробиум, vatikanstaat, macushield, hrisca, олива, 08003004003, 08007773935, goblinstadt, автопошук, ballart, 3477778585, 18668817582, 0120504235, motorradkombi, fazzali, ortgangbleche, betdlag, nailong, soluna, nanja, الضمير, opistotonus, pieszak, klonpin, 1801508537261287066, 05030994558, leseliste, natsoft, emmentalerost, budesynt, beoordelingswoorden, paliseul, ernia, дудлінг, 61285034691, hidoridenime, 3664854177, 150001, 0332027181, beled, magasinet, immergas, балык, 05031776182, solebecken, 0120019625, zhipat, putramooc, bencenos, укрпас, abschlagszahlung, plussulien, 8003210591, дискрет, jsipp, fahrschulen, 0120022208, emigrar, ochtendung, aztrosist, yellowstonw, wetheral, альперин, equimosyn, désinstaller, mastocitosi, укрфлора, 8335121234, ónémetjuhász, аутоповер, 3314732116, fošna, літол, malsom, autosworld, ceddinir, agregious, шипперке, 069823, farradayy, potencianövelők, ксенон, cistocentesis, 4056326414, terminsberegner, 3512907796, dermatodo, impaciencia, verwegen, жанін, schneekristalle, seriesam, 3200550, στεφανιογραφία, ostemar, holenleeuw, 08016051639, трипликсан, romantismen, 08096804901, 8652108468, الريحان, brachioradiale, colorme, neutop, 257940, yolox, pageflow, orléans, 4845771, printology, karaken, экстрасистолия, trece, brote, 0458727415, adiposo, webmail, taljalaite, القلقاس, complofires, 08016006304, nurekenen, kahrs, shashinki, nutrafil, datevalue, sklar, bogots, المنزلية, chocovine, prefchem, гідрокомпенсатори, φλαουτο, frietpot, نتایج, 3519611431, сансевьера, браслети, 800999500, 3533624626, mauritian, tiddies, 8004774747, chillhabit, 02037104705, serio, arabo, кодировка, bellantoni, 3788088, 3278932063, sexhi, ножиці, goncourt, smawa, 0343307961, kuukausikalenteri, ralco, documation, jurowiecka, dugain, 0342215261, kukljin, 18885401867, neuropatico, mayroon, 02345074289, kyllåda, 3511498038, ienes, 0800213139, forthewin, honeys, 08012588325, unconscience, 12723610, hitozuma, 102307164, consumir, cuico, ايفانكا, snowymoon, dextroza, koppningsmassage, broxel, nxbgd, 0343357676, helmintiasis, ejecucion, рекламу, 08003687151, 313185515, renttoown, 3513200881, picaleña, греховен, metsästäjät, coordinated, фубар, bodensanierung, 3020415, 082900872, 08009190509, sodat, torsus, pinaysexvideo, calamanero, bröstmjölkspåsar, 18669161093, focar, salesnow, smartbrosettings, anapanasati, agrarfrost, blanc, 0120102503, 0120944060, sotku, pulev, tuczniki, malfoy, openguessr, civava, 0366891225, gepur, патерни, xnxxxxxx, sunnansjö, sigems, hundekennel, nossport, aprehend, 8882337021, eyecon, vocho, 05031215195, krumplileves, juliana, взрив, 05030909540, бистрица, 9168457088, zlatobyl, karva, kétamine, 0120106360, waddington, mexborough, éstas, 3246166404, kqbdnet, мегаладон, lipolýza, genye, tiktokcounter, masid, sulsok, xurama, 0120444444, tiyak, 5127767111

How to Compress a PNG and Keep It Sharp

Worried a smaller PNG will turn blurry? Here is how to compress png without losing quality: run a lossless optimizer such as oxipng, which repacks the file’s data and leaves the picture untouched. This guide is part of our series on how to edit png images, and it covers the file-size side of that work.…

how to compress png without losing quality

Worried a smaller PNG will turn blurry? Here is how to compress png without losing quality: run a lossless optimizer such as oxipng, which repacks the file’s data and leaves the picture untouched.

This guide is part of our series on how to edit png images, and it covers the file-size side of that work.

Item Value
Default oxipng optimization level Level 2
Size added by interlacing 25-50% of an optimized image
ZopfliPNG gain over convert -q 95 (corpus of 1000 PNGs) 12% compression improvement
ZopfliPNG gain over pngout 0.5% compression improvement
ZopfliPNG CPU time compared with libpng 2-3 orders of magnitude more

The figures come from the oxipng man page and the ZopfliPNG README. They can change as the tools are updated, so check the source before you rely on them.

Why can a PNG shrink without losing detail?

PNG already stores pixels without loss, so the savings come from packing the same data more cleverly. Before compression, a step called filtering rewrites each row of pixels so the data becomes more compressible, although filtering by itself does not make the data smaller, as the PNG optimization guide explains.

The image type matters too. If an RGB image has 256 distinct colors or less, it can be re-encoded as a palette image, which cuts the amount of data the compressor has to handle, according to the same guide.

Because an encoder makes many choices, two programs can turn identical pixels into files of very different sizes. The guide says PNG compression may vary within wide limits, depending on the compressor’s implementation (source).

A good optimizer works on several fronts at once. According to the ZopfliPNG README, its feature list includes:

  • Stronger Deflate compression through Zopfli.
  • Comparing several strategies for choosing scanline filter codes.
  • Choosing a suitable color type to encode the image losslessly.

None of these steps changes what the image looks like, which is why optimizing is the safest way to shrink a PNG.

Several screens display collections of photographs against a dark background.

Compress a PNG with oxipng, step by step

The oxipng man page describes the tool as a lossless PNG compression optimizer, and a basic run needs only a file path (source). Follow these steps:

  1. Work on a copy of your image, because oxipng overwrites the file by default.
  2. Run oxipng path/to/file.png to compress a single file.
  3. Add –out path/to/output.png if you would rather save the result as a new file.
  4. Run oxipng “*.png” to compress every PNG in the current directory using multiple threads.
  5. Add –dry-run first when you only want to see the compression results without writing any files.

You can also tune effort. The default level 2 is quite fast and provides good compression, while higher levels squeeze out more with increasingly diminishing returns, according to the man page.

Try –opt max when file size matters more than waiting time, such as for a final export. Lower levels are faster, which suits quick passes over big folders.

This site has no affiliation with oxipng, ZopfliPNG or any other tool maker, and no tool mentioned here is sponsored.

When Zopfli is worth the wait

Zopfli is a stronger Deflate compressor, and oxipng can use it through the –zopfli option. The man page calls it much slower but stronger and recommends using it with -o max (source).

ZopfliPNG is a separate command line program for the same job. In the README’s initial testing on a corpus of 1000 PNGs with translucency, it gave a compression improvement of 12% compared to convert -q 95, but only 0.5% compared to pngout (source).

That gain has a price in time. Compared with libpng, ZopfliPNG uses 2-3 orders of magnitude more CPU time for compression, per the same README.

The authors are candid about the limits: they hope to make images on the web load faster without a new image format, but the opportunities for optimization within PNG are limited. Treat Zopfli as a final polish for images you will serve many times, not as a daily habit.

Which settings can change how your image looks?

Default lossless runs keep every visible detail, but a few options trade fidelity for size. Know these before you switch them on:

  • –alpha alters the color values of fully transparent pixels. The man page calls this “visually lossless” but technically a lossy transformation that may be unsuitable for some applications (source).
  • –scale16 forcibly reduces images with 16 bits per channel to 8 bits per channel. The same man page labels this a lossy operation.
  • –strip all removes every non-critical chunk and will convert APNGs to standard PNGs, so animations stop animating (source).
  • –interlace on can add 25-50% to the size of an optimized image, according to the man page.

Interlacing is a poor trade for size in PNG. Unlike JPEG, where interlacing may improve compression slightly, PNG interlacing degrades compression significantly (source).

Metadata deserves a look as well. ZopfliPNG removes ancillary chunks that normally do not affect rendering, and the README suggests –keepchunks=gAMA,pHYs if you need to keep gamma and DPI information (source).

Check the result before you publish

The ZopfliPNG README advises you to visually check the output in the target renderer (source). Treat that as a rule for any optimizer. A short routine helps:

  • Open the original and the optimized file side by side in the place they will be shown.
  • Zoom in on soft edges, gradients and transparent areas.
  • Compare file sizes, and keep the original in a safe folder.

Do edits that change pixels first, then optimize last so you do not repeat work. Our walkthrough on how to make a png background transparent covers cutting out a backdrop.

If the file is still too heavy after optimizing, the pixel dimensions are the other lever. Our guide on how to resize a png shows how to change them.

Frequently asked questions

Is compressing a PNG always lossless?

Show answer

No. A plain optimizer run rewrites the data without altering the picture, but options such as –alpha and bit-depth scaling are described in the oxipng man page as technically lossy. Leave them off when exact pixel values matter.

Should I choose oxipng or ZopfliPNG?

Show answer

Start with oxipng at its defaults for everyday files, since it is quick. Move to Zopfli only for final exports where an extra few percent is worth a long wait.

Will optimizing remove my image’s metadata?

Show answer

It depends on the tool and flags. Per the oxipng man page, the default when –strip is not passed is to keep all chunks that remain valid, while ZopfliPNG removes ancillary chunks unless you ask it to keep them.

Should I leave interlacing on?

Show answer

Only if progressive display matters more to you than size. oxipng’s TL;DR notes that its default is off, which also avoids the size penalty.

Image Editing

  • How to Convert PNG to PDF on Windows, Mac and Phone

    How to Convert PNG to PDF on Windows, Mac and Phone

    Need a PNG as a PDF for a form, an email or a print job? Here is how to convert png to pdf: use Print to PDF on Windows, Preview on Mac, or a free online tool on any device. Converting is one step in a wider workflow, and our guide on how to edit…

  • How to Resize a PNG and Keep Transparency Intact

    How to Resize a PNG and Keep Transparency Intact

    Worried your logo will turn black or lose its see-through background? Here is how to resize a PNG safely: convert it to a full alpha channel first, then resize and save as PNG. If you want the wider picture, our guide on how to edit png images covers the rest of the toolkit. These figures…

  • png vs pdf — Image Editing

    png vs pdf — Image Editing

    Not sure which to pick? In the png vs pdf question, PNG is the right file for a single picture, and PDF is the right file for a document with pages and text. Match the format to the job. If you are working through image tasks more broadly, our guide on how to edit png…