Benchmark summary

Original = input PNG size on disk. rewritten-baseline = the same per-row filters rebuilt through this tool and then DEFLATE-estimated; this isolates rewrite/stream effects from filter-choice changes.

Compression-case guide: smaller numbers are better, and a gap between original and rewritten-baseline means the rewritten IDAT stream changed compression behavior even with equivalent row filters.

ImageBest strategy
screenshots/gunzip-icon.pngentropy
screenshots/logo_with_transparent_bg.pngoriginal
screenshots/screenshot.pngentropy
screenshots/screenshot_android.pngfixed-none
screenshots/textscreenshot32.pngfixed-none
screenshots/yablogwriter.pngentropy
small/cs-black-000.pngoriginal
sprites/spritesheet.pngentropy
sprites/spritesheet256.pngfixed-none
synthetic/dirty-color-horizontal-gradient-512.pngfixed-none
synthetic/dirty-color-vertical-gradient-512.pngfixed-none
synthetic/djinni-retro.pngfixed-up
synthetic/pestilence.pngfixed-up
synthetic/pestilence_90-degrees-ccw.pnggenetic
synthetic/red-to-white-horizontal-gradient-512.pngfixed-sub
synthetic/red-to-white-vertical-gradient-512.pngfixed-paeth

screenshots/gunzip-icon.png

Source image: screenshots/gunzip-icon.png

PNG metadata: width=1061, height=1061, color type=2, bit depth=8, bytes per pixel=3, bytes per row=3183, palette preserved=false, interlace preserved=true

StrategySize (bytes)Ratio vs bestNONESUBUPAVERAGEPAETHTime (ms)
original169 025103.68%058656842630
rewritten-baseline166 698102.26%058656842630
entropy163 021100.00%4951031204339375
adaptive166 698102.26%0586568426335
exhaustive166 754102.29%055654842682592
genetic166 847102.35%199132399033129709
fixed-none179 842110.32%1061000019
fixed-sub179 856110.33%0106100018
fixed-up177 503108.88%0010610018
fixed-average196 953120.81%0001061018
fixed-paeth169 180103.78%0000106118

Winning strategy: entropy beat adaptive by a small margin of 3 677 bytes (2.21% smaller).

Likely explanation: PAETH minimizes local residual magnitude. Horizontal smoothness is stronger than vertical smoothness. Compared with rewritten-baseline, the global repetition evidence is close. Repetition metrics are broadly similar (3022158 vs 3003145 repeated 32-byte substrings), and match quality differs more than raw repetition count; entropy shows the stronger local match structure overall. Although PAETH slightly minimizes residual magnitude better, compared with rewritten-baseline, entropy generates a more compression-friendly residual stream with better match lengths, nearer references, and lower estimated LZ token cost.

Compression insight: PAETH minimizes local residuals, but simpler predictors create a more regular DEFLATE-friendly residual language. This suggests global phrase reuse matters more than per-pixel predictor cleverness for this image.

Compression observations:

Diagnostics

_Note: diagnostics include approximate LZ longest-match estimation (sampled hash-chain over 32 KiB lookback)._

StrategyLZ cost bitsMatch coverage %Avg match lenMatches 64+Repeated 32BRepeated rowsShort dist %Long dist %
rewritten-baseline1 523 39599.343.5128933 003 14548948.86.9
entropy1 480 07499.345.3130393 022 15849147.87.0
adaptive1 523 39599.343.5128933 003 14548948.86.9
exhaustive1 523 64999.343.5128953 003 18248948.86.9
genetic1 511 30399.344.1129033 004 93748649.57.0
fixed-none1 631 62599.044.1122712 974 81549242.78.2
fixed-sub1 627 70099.143.0127562 995 62649245.87.0
fixed-up1 574 53199.142.7128722 995 52748951.17.3
fixed-average1 761 41299.038.6126752 951 62648949.37.3
fixed-paeth1 536 05499.343.9130063 008 30548946.47.4

Directional smoothness:

MetricValue
Mean horizontal delta0.89
Mean vertical delta1.43
Vertical/Horizontal ratio1.61

Residual sumAbs:

FilterSumAbs
NONE23 516 939
SUB2 892 542
UP4 589 240
AVERAGE4 098 352
PAETH1 667 441

Filter layout previews (row tint: NONE red, SUB orange, UP blue, AVERAGE green, PAETH purple):

original

rewritten-baseline

entropy

adaptive

exhaustive

genetic

screenshots/logo_with_transparent_bg.png

Source image: screenshots/logo_with_transparent_bg.png

PNG metadata: width=1536, height=1024, color type=6, bit depth=8, bytes per pixel=4, bytes per row=6144, palette preserved=false, interlace preserved=true

StrategySize (bytes)Ratio vs bestNONESUBUPAVERAGEPAETHTime (ms)
original2 503 316100.00%021244903630
rewritten-baseline2 584 621103.25%021244903630
entropy2 524 958100.86%0128126631139644
adaptive2 550 197101.87%016622427835671
exhaustive2 550 081101.87%01672252783544633
genetic2 536 909101.34%01286464019251577
fixed-none3 263 374130.36%1024000056
fixed-sub2 612 115104.35%0102400056
fixed-up2 651 402105.92%0010240056
fixed-average2 557 396102.16%00010240264
fixed-paeth2 613 417104.40%0000102458

Winning strategy: original beat entropy by a tiny margin of 21 642 bytes (0.86% smaller).

Likely explanation: Compression outcome reflects a close tradeoff between local predictor precision and global DEFLATE repetition.

Compression insight: Compression behavior is inconclusive because diagnostics are unavailable for the winning strategy.

Diagnostics

_Note: diagnostics include approximate LZ longest-match estimation (sampled hash-chain over 32 KiB lookback)._

StrategyLZ cost bitsMatch coverage %Avg match lenMatches 64+Repeated 32BRepeated rowsShort dist %Long dist %
rewritten-baseline25 726 24794.54.649 625032.56.0
entropy24 968 92694.24.7410 424035.65.8
adaptive25 350 22994.54.7310 073033.75.9
exhaustive25 348 76594.54.7310 082033.75.9
genetic25 068 20494.04.7510 783035.45.8
fixed-none29 818 94389.84.539 561021.123.1
fixed-sub25 804 94493.44.7514 324032.26.4
fixed-up26 072 17093.54.606 386033.46.3
fixed-average25 045 44393.24.808 740036.86.1
fixed-paeth26 061 94794.44.609 224030.56.1

Directional smoothness:

MetricValue
Mean horizontal delta3.31
Mean vertical delta3.34
Vertical/Horizontal ratio1.01

Residual sumAbs:

FilterSumAbs
NONE373 622 365
SUB17 323 115
UP17 734 562
AVERAGE17 796 366
PAETH14 782 854

Filter layout previews (row tint: NONE red, SUB orange, UP blue, AVERAGE green, PAETH purple):

original

rewritten-baseline

entropy

adaptive

exhaustive

genetic

screenshots/screenshot.png

Source image: screenshots/screenshot.png

PNG metadata: width=1536, height=1024, color type=2, bit depth=8, bytes per pixel=3, bytes per row=4608, palette preserved=false, interlace preserved=true

StrategySize (bytes)Ratio vs bestNONESUBUPAVERAGEPAETHTime (ms)
original2 319 148101.23%08017109170
rewritten-baseline2 293 106100.10%08017109170
entropy2 290 917100.00%0107431882637
adaptive2 293 106100.10%081171091653
exhaustive2 292 649100.08%09013129093660
genetic2 296 199100.23%0640096027367
fixed-none3 142 042137.15%1024000041
fixed-sub2 475 453108.06%0102400041
fixed-up2 522 956110.13%0010240041
fixed-average2 457 675107.28%0001024041
fixed-paeth2 296 796100.26%0000102441

Winning strategy: entropy beat exhaustive by a tiny margin of 1 732 bytes (0.08% smaller).

Likely explanation: PAETH minimizes local residual magnitude. Directional smoothness is balanced across axes. Compared with exhaustive, entropy produces moderately more repeated DEFLATE-friendly 32-byte substrings (122795 vs 115067), affecting global repeat structure. Although PAETH slightly minimizes residual magnitude better, compared with exhaustive, entropy generates a more compression-friendly residual stream with better match lengths, nearer references, and lower estimated LZ token cost.

Compression insight: Simpler predictors appear to form a more regular DEFLATE-friendly residual language than PAETH's locally adaptive predictor. The image behaves mostly like a fixed-PAETH image with a few beneficial local exceptions.

Compression observations:

Diagnostics

_Note: diagnostics include approximate LZ longest-match estimation (sampled hash-chain over 32 KiB lookback)._

StrategyLZ cost bitsMatch coverage %Avg match lenMatches 64+Repeated 32BRepeated rowsShort dist %Long dist %
rewritten-baseline21 321 53785.04.87112 501027.914.2
entropy21 284 90085.04.85122 795027.914.2
adaptive21 321 53785.04.87112 501027.914.2
exhaustive21 315 54085.04.87115 067027.914.2
genetic21 343 83085.04.8394 795028.014.1
fixed-none26 432 26353.75.4826 822027.418.0
fixed-sub22 368 79879.14.86128 426027.814.9
fixed-up22 671 09778.54.8150 377028.215.7
fixed-average22 279 05680.54.8457 872029.315.4
fixed-paeth21 360 64285.04.8388 665028.014.1

Directional smoothness:

MetricValue
Mean horizontal delta7.67
Mean vertical delta8.26
Vertical/Horizontal ratio1.08

Residual sumAbs:

FilterSumAbs
NONE213 355 787
SUB33 427 690
UP36 602 646
AVERAGE31 580 452
PAETH21 265 659

Filter layout previews (row tint: NONE red, SUB orange, UP blue, AVERAGE green, PAETH purple):

original

rewritten-baseline

entropy

adaptive

exhaustive

genetic

screenshots/screenshot_android.png

Source image: screenshots/screenshot_android.png

PNG metadata: width=1080, height=2340, color type=2, bit depth=8, bytes per pixel=3, bytes per row=3240, palette preserved=false, interlace preserved=true

StrategySize (bytes)Ratio vs bestNONESUBUPAVERAGEPAETHTime (ms)
original456 359119.51%01621469966130
rewritten-baseline445 940116.79%01621469966130
entropy432 756113.33%44328158521362718
adaptive445 940116.79%016214699661366
exhaustive446 011116.80%01601475886176610
genetic381 843100.00%2340000049936
fixed-none381 843100.00%2340000041
fixed-sub457 761119.88%0234000041
fixed-up449 498117.72%0023400041
fixed-average537 929140.88%0002340041
fixed-paeth463 519121.39%0000234041

Winning strategy: fixed-none beat entropy by a large margin of 50 913 bytes (11.76% smaller).

Likely explanation: PAETH minimizes local residual magnitude. Vertical smoothness is stronger than horizontal smoothness. The genetic search converged to the same filter sequence as fixed-none, independently rediscovering the identical filtered stream. However, fixed-none preserves literal row structure with 877 repeated rows, reinforcing exact repeated byte runs for DEFLATE back-references. Although PAETH slightly minimizes residual magnitude better, compared with entropy, fixed-none generates a more compression-friendly residual stream with better match lengths, nearer references, and lower estimated LZ token cost.

Compression insight: Preserving exact repeated row structure outweighs residual minimization here. DEFLATE likely benefits from seeing the same byte phrases recur rather than from locally smaller but less reusable residuals.

Compression observations:

Equivalent strategies: genetic ≡ fixed-none (identical filtered stream; runtime rows retained).

Diagnostics

_Note: diagnostics include approximate LZ longest-match estimation (sampled hash-chain over 32 KiB lookback)._

StrategyLZ cost bitsMatch coverage %Avg match lenMatches 64+Repeated 32BRepeated rowsShort dist %Long dist %
rewritten-baseline3 797 16198.545.3277456 587 13780446.68.3
entropy3 690 42698.547.0279006 618 16280546.98.3
adaptive3 797 16198.545.3277456 587 13780446.68.3
exhaustive3 798 23098.545.3277366 586 91380446.68.3
genetic3 254 64398.953.0281486 600 16187743.28.0
fixed-none3 254 64398.953.0281486 600 16187743.28.0
fixed-sub3 859 03998.347.8281036 571 08087740.59.3
fixed-up3 796 72998.446.2276976 590 13180447.88.2
fixed-average4 505 99498.041.0275116 435 35081141.59.8
fixed-paeth3 939 78098.544.1275806 564 22680445.18.4

Directional smoothness:

MetricValue
Mean horizontal delta3.12
Mean vertical delta2.51
Vertical/Horizontal ratio0.80

Residual sumAbs:

FilterSumAbs
NONE205 129 863
SUB18 304 125
UP14 633 806
AVERAGE18 785 560
PAETH10 794 175

Filter layout previews (row tint: NONE red, SUB orange, UP blue, AVERAGE green, PAETH purple):

original

rewritten-baseline

entropy

adaptive

exhaustive

screenshots/textscreenshot32.png

Source image: screenshots/textscreenshot32.png

PNG metadata: width=1086, height=1448, color type=6, bit depth=8, bytes per pixel=4, bytes per row=4344, palette preserved=false, interlace preserved=true

StrategySize (bytes)Ratio vs bestNONESUBUPAVERAGEPAETHTime (ms)
original1 678 800228.01%001448000
rewritten-baseline1 205 076163.67%001448000
entropy1 179 867160.25%3019578313427635
adaptive1 201 796163.23%142024301478856
exhaustive1 200 557163.06%14211418147914879
genetic736 270100.00%1448000043479
fixed-none736 270100.00%1448000041
fixed-sub1 016 891138.11%0144800041
fixed-up1 205 076163.67%0014480042
fixed-average1 512 772205.46%00014480241
fixed-paeth1 223 234166.14%00001448218

Winning strategy: fixed-none beat fixed-sub by a large margin of 280 621 bytes (27.60% smaller).

Likely explanation: PAETH minimizes local residual magnitude. Directional smoothness is balanced across axes. The genetic search converged to the same filter sequence as fixed-none, independently rediscovering the identical filtered stream. Compared with fixed-sub, fixed-none produces moderately more repeated DEFLATE-friendly 32-byte substrings (4288065 vs 3762767), affecting global repeat structure. Although PAETH slightly minimizes residual magnitude better, compared with fixed-sub, fixed-none generates a more compression-friendly residual stream with better match lengths, nearer references, and lower estimated LZ token cost.

Compression insight: PAETH minimizes local residuals, but simpler predictors create a more regular DEFLATE-friendly residual language. This suggests global phrase reuse matters more than per-pixel predictor cleverness for this image.

Compression observations:

Equivalent strategies: genetic ≡ fixed-none (identical filtered stream; runtime rows retained).

Diagnostics

_Note: diagnostics include approximate LZ longest-match estimation (sampled hash-chain over 32 KiB lookback)._

StrategyLZ cost bitsMatch coverage %Avg match lenMatches 64+Repeated 32BRepeated rowsShort dist %Long dist %
rewritten-baseline11 215 77999.09.614312 109 390053.53.7
entropy10 925 63498.99.916582 222 368052.83.8
adaptive11 103 96998.99.916202 195 385051.54.1
exhaustive11 092 54898.99.916212 207 842051.44.1
genetic7 701 853100.013.217564 288 065067.30.5
fixed-none7 701 853100.013.217564 288 065067.30.5
fixed-sub9 696 64299.011.517593 762 767050.34.7
fixed-up11 215 77999.09.614312 109 390053.53.7
fixed-average13 841 81997.78.212661 385 829047.65.4
fixed-paeth11 374 86998.99.615822 113 015049.94.4

Directional smoothness:

MetricValue
Mean horizontal delta7.36
Mean vertical delta6.55
Vertical/Horizontal ratio0.89

Residual sumAbs:

FilterSumAbs
NONE64 838 389
SUB36 634 665
UP33 293 852
AVERAGE38 250 486
PAETH24 195 152

Filter layout previews (row tint: NONE red, SUB orange, UP blue, AVERAGE green, PAETH purple):

entropy

adaptive

exhaustive

screenshots/yablogwriter.png

Source image: screenshots/yablogwriter.png

PNG metadata: width=1254, height=1254, color type=2, bit depth=8, bytes per pixel=3, bytes per row=3762, palette preserved=false, interlace preserved=true

StrategySize (bytes)Ratio vs bestNONESUBUPAVERAGEPAETHTime (ms)
original1 042 833101.57%04953206730
rewritten-baseline1 030 144100.34%04953206730
entropy1 026 693100.00%082447473252541
adaptive1 030 156100.34%0465321765954
exhaustive1 029 271100.25%066509176623463
genetic1 038 298101.13%00314094032327
fixed-none1 128 084109.88%1254000038
fixed-sub1 082 628105.45%0125400038
fixed-up1 055 621102.82%0012540038
fixed-average1 046 816101.96%0001254038
fixed-paeth1 036 878100.99%0000125441

Winning strategy: entropy beat exhaustive by a tiny margin of 2 578 bytes (0.25% smaller).

Likely explanation: PAETH minimizes local residual magnitude. Directional smoothness is balanced across axes. Compared with exhaustive, the global repetition evidence is close. Repetition metrics are broadly similar (543265 vs 568002 repeated 32-byte substrings), but entropy has lower estimated LZ token cost, longer average matches, and more short-distance matches, indicating a simpler and more stationary residual stream. Although PAETH slightly minimizes residual magnitude better, compared with exhaustive, entropy generates a more compression-friendly residual stream with better match lengths, nearer references, and lower estimated LZ token cost.

Compression insight: PAETH minimizes local residuals, but simpler predictors create a more regular DEFLATE-friendly residual language. This suggests global phrase reuse matters more than per-pixel predictor cleverness for this image.

Compression observations:

Diagnostics

_Note: diagnostics include approximate LZ longest-match estimation (sampled hash-chain over 32 KiB lookback)._

StrategyLZ cost bitsMatch coverage %Avg match lenMatches 64+Repeated 32BRepeated rowsShort dist %Long dist %
rewritten-baseline9 927 41298.57.723569 130068.31.9
entropy9 854 18298.57.725543 265070.21.8
adaptive9 928 69698.57.723565 333068.41.9
exhaustive9 921 58498.57.723568 002068.41.9
genetic10 027 73998.57.619505 076068.31.9
fixed-none10 619 71797.58.19316 081047.64.6
fixed-sub10 624 95098.27.34254 157068.31.8
fixed-up10 133 61798.57.523539 268068.51.8
fixed-average10 114 51598.37.52322 699072.01.6
fixed-paeth10 026 07098.57.717523 679068.12.0

Directional smoothness:

MetricValue
Mean horizontal delta0.96
Mean vertical delta0.93
Vertical/Horizontal ratio0.97

Residual sumAbs:

FilterSumAbs
NONE116 567 499
SUB4 221 234
UP4 312 158
AVERAGE4 398 920
PAETH2 739 025

Filter layout previews (row tint: NONE red, SUB orange, UP blue, AVERAGE green, PAETH purple):

original

rewritten-baseline

entropy

adaptive

exhaustive

genetic

small/cs-black-000.png

Source image: small/cs-black-000.png

PNG metadata: width=400, height=400, color type=3, bit depth=8, bytes per pixel=1, bytes per row=400, palette preserved=true, interlace preserved=true

StrategySize (bytes)Ratio vs bestNONESUBUPAVERAGEPAETHTime (ms)
original1 916100.00%1850214010
rewritten-baseline1 989103.81%1850214010
entropy2 839148.17%105526802283
adaptive5 231273.02%113751620501
exhaustive5 517287.94%11365162060149
genetic3 376176.20%00400002195
fixed-none5 884307.10%40000000
fixed-sub3 717194.00%04000000
fixed-up3 376176.20%00400000
fixed-average13 318695.09%00040000
fixed-paeth8 561446.82%00004000

Winning strategy: original beat rewritten-baseline by a moderate margin of 73 bytes (3.67% smaller).

Likely explanation: Compression outcome reflects a close tradeoff between local predictor precision and global DEFLATE repetition.

Compression insight: Compression behavior is inconclusive because diagnostics are unavailable for the winning strategy.

Diagnostics

_Note: diagnostics include approximate LZ longest-match estimation (sampled hash-chain over 32 KiB lookback)._

StrategyLZ cost bitsMatch coverage %Avg match lenMatches 64+Repeated 32BRepeated rowsShort dist %Long dist %
rewritten-baseline21 64699.8136.1682151 94214171.20.0
entropy27 67499.6113.5723144 75614774.61.3
adaptive46 48199.269.7631142 47714764.13.7
exhaustive49 43099.165.3630141 91314768.33.6
genetic32 01199.794.9770143 79314265.21.8
fixed-none61 60298.555.0589145 57126171.82.5
fixed-sub35 87299.594.4635148 25526144.72.7
fixed-up32 01199.794.9770143 79314265.21.8
fixed-average119 68496.038.7551120 82414243.13.0
fixed-paeth79 63798.238.3657132 19114282.61.9

Directional smoothness:

MetricValue
Mean horizontal delta4.55
Mean vertical delta6.13
Vertical/Horizontal ratio1.35

Residual sumAbs:

FilterSumAbs
NONE3 477 486
SUB725 544
UP977 568
AVERAGE848 522
PAETH333 320

Filter layout previews (row tint: NONE red, SUB orange, UP blue, AVERAGE green, PAETH purple):

original

rewritten-baseline

entropy

adaptive

exhaustive

sprites/spritesheet.png

Source image: sprites/spritesheet.png

PNG metadata: width=1536, height=1024, color type=2, bit depth=8, bytes per pixel=3, bytes per row=4608, palette preserved=false, interlace preserved=true

StrategySize (bytes)Ratio vs bestNONESUBUPAVERAGEPAETHTime (ms)
original2 660 018106.13%0447569170
rewritten-baseline2 507 843100.06%0447569170
entropy2 506 437100.00%0431249920640
adaptive2 507 843100.06%04575691652
exhaustive2 507 646100.05%0497559133432
genetic2 509 597100.13%0000102428080
fixed-none2 892 438115.40%1024000041
fixed-sub2 631 004104.97%0102400041
fixed-up2 659 492106.11%0010240042
fixed-average2 595 637103.56%0001024041
fixed-paeth2 509 597100.13%0000102441

Winning strategy: entropy beat exhaustive by a tiny margin of 1 209 bytes (0.05% smaller).

Likely explanation: PAETH minimizes local residual magnitude. Directional smoothness is balanced across axes. Compared with exhaustive, the global repetition evidence is close. Repetition metrics are broadly similar (44240 vs 43959 repeated 32-byte substrings), but entropy has lower estimated LZ token cost, longer average matches, and more short-distance matches, indicating a simpler and more stationary residual stream. Although PAETH slightly minimizes residual magnitude better, compared with exhaustive, entropy generates a more compression-friendly residual stream with better match lengths, nearer references, and lower estimated LZ token cost.

Compression insight: Simpler predictors appear to form a more regular DEFLATE-friendly residual language than PAETH's locally adaptive predictor. The image behaves mostly like a fixed-PAETH image with a few beneficial local exceptions.

Compression observations:

Diagnostics

_Note: diagnostics include approximate LZ longest-match estimation (sampled hash-chain over 32 KiB lookback)._

StrategyLZ cost bitsMatch coverage %Avg match lenMatches 64+Repeated 32BRepeated rowsShort dist %Long dist %
rewritten-baseline22 250 85876.45.0143 687031.315.7
entropy22 229 20876.35.0144 240031.415.7
adaptive22 250 85876.45.0143 687031.315.7
exhaustive22 248 89776.45.0143 959031.315.7
genetic22 267 01976.35.0140 087031.315.7
fixed-none24 380 39660.55.8319 344023.917.1
fixed-sub22 912 08672.45.1161 930031.316.0
fixed-up22 897 75472.55.0131 748031.915.6
fixed-average22 758 02374.45.0032 158032.216.4
fixed-paeth22 267 01976.35.0140 087031.315.7

Directional smoothness:

MetricValue
Mean horizontal delta10.11
Mean vertical delta10.83
Vertical/Horizontal ratio1.07

Residual sumAbs:

FilterSumAbs
NONE140 784 815
SUB45 805 810
UP49 161 633
AVERAGE40 890 323
PAETH34 970 562

Filter layout previews (row tint: NONE red, SUB orange, UP blue, AVERAGE green, PAETH purple):

original

rewritten-baseline

entropy

adaptive

exhaustive

sprites/spritesheet256.png

Source image: sprites/spritesheet256.png

PNG metadata: width=1536, height=1024, color type=6, bit depth=8, bytes per pixel=4, bytes per row=6144, palette preserved=false, interlace preserved=true

StrategySize (bytes)Ratio vs bestNONESUBUPAVERAGEPAETHTime (ms)
original2 147 385215.24%001024000
rewritten-baseline1 674 698167.86%001024000
entropy1 708 690171.27%0122642836651
adaptive1 721 992172.60%08425291358
exhaustive1 721 009172.50%0862319144623
genetic997 686100.00%1024000047459
fixed-none997 686100.00%1024000043
fixed-sub1 547 359155.09%0102400044
fixed-up1 674 698167.86%0010240043
fixed-average2 102 954210.78%0001024044
fixed-paeth1 738 308174.23%0000102444

Winning strategy: fixed-none beat fixed-sub by a large margin of 549 673 bytes (35.52% smaller).

Likely explanation: PAETH minimizes local residual magnitude. Directional smoothness is balanced across axes. The genetic search converged to the same filter sequence as fixed-none, independently rediscovering the identical filtered stream. Compared with fixed-sub, fixed-none produces moderately more repeated DEFLATE-friendly 32-byte substrings (3211391 vs 2702983), affecting global repeat structure. Although PAETH slightly minimizes residual magnitude better, compared with fixed-sub, fixed-none generates a more compression-friendly residual stream with better match lengths, nearer references, and lower estimated LZ token cost.

Compression insight: PAETH minimizes local residuals, but simpler predictors create a more regular DEFLATE-friendly residual language. This suggests global phrase reuse matters more than per-pixel predictor cleverness for this image.

Compression observations:

Equivalent strategies: genetic ≡ fixed-none (identical filtered stream; runtime rows retained).

Diagnostics

_Note: diagnostics include approximate LZ longest-match estimation (sampled hash-chain over 32 KiB lookback)._

StrategyLZ cost bitsMatch coverage %Avg match lenMatches 64+Repeated 32BRepeated rowsShort dist %Long dist %
rewritten-baseline14 703 54294.68.63661 604 317042.110.2
entropy15 134 09194.38.64761 880 711037.711.6
adaptive15 263 77894.38.64631 847 981037.611.7
exhaustive15 254 51894.38.64611 853 119037.511.7
genetic9 913 94499.711.15543 211 391045.03.4
fixed-none9 913 94499.711.15543 211 391045.03.4
fixed-sub13 680 58994.69.75762 702 983036.811.6
fixed-up14 703 54294.68.63661 604 317042.110.2
fixed-average18 953 80190.97.11711 424 055038.713.3
fixed-paeth15 411 73094.28.53471 802 941037.711.7

Directional smoothness:

MetricValue
Mean horizontal delta5.59
Mean vertical delta5.76
Vertical/Horizontal ratio1.03

Residual sumAbs:

FilterSumAbs
NONE130 331 447
SUB32 777 647
UP33 117 106
AVERAGE30 844 080
PAETH23 346 207

Filter layout previews (row tint: NONE red, SUB orange, UP blue, AVERAGE green, PAETH purple):

entropy

adaptive

exhaustive

synthetic/dirty-color-horizontal-gradient-512.png

Source image: synthetic/dirty-color-horizontal-gradient-512.png

PNG metadata: width=512, height=512, color type=6, bit depth=8, bytes per pixel=4, bytes per row=2048, palette preserved=false, interlace preserved=true

StrategySize (bytes)Ratio vs bestNONESUBUPAVERAGEPAETHTime (ms)
original280 2172678.68%00512000
rewritten-baseline119 9591146.73%00512000
entropy48 296461.68%038401280150
adaptive63 691608.84%0193003197
exhaustive60 642579.70%025700255745
genetic10 461100.00%51200008886
fixed-none10 461100.00%51200005
fixed-sub48 062459.44%05120005
fixed-up119 9591146.73%00512005
fixed-average90 520865.31%00051205
fixed-paeth75 620722.88%00005125

Winning strategy: fixed-none beat fixed-sub by a large margin of 37 601 bytes (78.23% smaller).

Likely explanation: PAETH minimizes local residual magnitude. Horizontal smoothness is stronger than vertical smoothness. The genetic search converged to the same filter sequence as fixed-none, independently rediscovering the identical filtered stream. Compared with fixed-sub, the global repetition evidence is close. Repetition metrics are broadly similar (1036748 vs 1044624 repeated 32-byte substrings), and match quality differs more than raw repetition count; fixed-none shows the stronger local match structure overall. Although PAETH slightly minimizes residual magnitude better, compared with fixed-sub, fixed-none generates a more compression-friendly residual stream with better match lengths, nearer references, and lower estimated LZ token cost.

Compression insight: Preserving exact repeated row structure outweighs residual minimization here. DEFLATE likely benefits from seeing the same byte phrases recur rather than from locally smaller but less reusable residuals.

Compression observations:

Equivalent strategies: genetic ≡ fixed-none (identical filtered stream; runtime rows retained).

Diagnostics

_Note: diagnostics include approximate LZ longest-match estimation (sampled hash-chain over 32 KiB lookback)._

StrategyLZ cost bitsMatch coverage %Avg match lenMatches 64+Repeated 32BRepeated rowsShort dist %Long dist %
rewritten-baseline1 575 029100.09.55031 033 435097.60.5
entropy948 747100.017.28241 043 868079.70.8
adaptive1 140 487100.014.18191 037 146077.71.1
exhaustive1 176 662100.013.65661 038 891078.70.7
genetic257 060100.097.040691 036 74808.030.3
fixed-none257 060100.097.040691 036 74808.030.3
fixed-sub940 114100.017.47601 044 624079.70.8
fixed-up1 575 029100.09.55031 033 435097.60.5
fixed-average1 265 434100.012.26921 036 679091.60.7
fixed-paeth1 390 474100.011.75681 034 063071.00.6

Directional smoothness:

MetricValue
Mean horizontal delta0.19
Mean vertical delta0.37
Vertical/Horizontal ratio2.00

Residual sumAbs:

FilterSumAbs
NONE46 775 680
SUB320 000
UP483 065
AVERAGE528 559
PAETH288 046

Filter layout previews (row tint: NONE red, SUB orange, UP blue, AVERAGE green, PAETH purple):

entropy

adaptive

exhaustive

synthetic/dirty-color-vertical-gradient-512.png

Source image: synthetic/dirty-color-vertical-gradient-512.png

PNG metadata: width=512, height=512, color type=6, bit depth=8, bytes per pixel=4, bytes per row=2048, palette preserved=false, interlace preserved=true

StrategySize (bytes)Ratio vs bestNONESUBUPAVERAGEPAETHTime (ms)
original48 601779.11%00512000
rewritten-baseline6 845109.73%00512000
entropy7 125114.22%041430338123
adaptive7 097113.77%03143930127
exhaustive7 103113.87%0324363212743
genetic6 238100.00%512000010213
fixed-none6 238100.00%51200005
fixed-sub7 529120.70%05120005
fixed-up6 845109.73%00512005
fixed-average8 054129.11%00051205
fixed-paeth7 324117.41%00005125

Winning strategy: fixed-none beat fixed-up by a large margin of 607 bytes (8.87% smaller).

Likely explanation: PAETH minimizes local residual magnitude. Vertical smoothness is stronger than horizontal smoothness. The genetic search converged to the same filter sequence as fixed-none, independently rediscovering the identical filtered stream. However, fixed-none preserves literal row structure with 4 repeated rows, reinforcing exact repeated byte runs for DEFLATE back-references. Although PAETH slightly minimizes residual magnitude better, compared with rewritten-baseline, fixed-none generates a more compression-friendly residual stream with better match lengths, nearer references, and lower estimated LZ token cost.

Compression insight: Preserving exact repeated row structure outweighs residual minimization here. DEFLATE likely benefits from seeing the same byte phrases recur rather than from locally smaller but less reusable residuals.

Compression observations:

Equivalent strategies: genetic ≡ fixed-none (identical filtered stream; runtime rows retained).

Diagnostics

_Note: diagnostics include approximate LZ longest-match estimation (sampled hash-chain over 32 KiB lookback)._

StrategyLZ cost bitsMatch coverage %Avg match lenMatches 64+Repeated 32BRepeated rowsShort dist %Long dist %
rewritten-baseline120 432100.0143.440391 028 570085.33.4
entropy119 947100.0145.340391 028 626086.73.0
adaptive120 293100.0144.640391 028 508086.73.1
exhaustive120 071100.0144.940381 028 574086.83.1
genetic95 579100.0189.540961 023 520490.10.0
fixed-none95 579100.0189.540961 023 520490.10.0
fixed-sub105 601100.0172.741081 028 052484.50.4
fixed-up120 432100.0143.440391 028 570085.33.4
fixed-average116 296100.0153.840771 023 350284.02.1
fixed-paeth114 815100.0153.240741 026 724086.14.3

Directional smoothness:

MetricValue
Mean horizontal delta0.37
Mean vertical delta0.19
Vertical/Horizontal ratio0.50

Residual sumAbs:

FilterSumAbs
NONE46 775 680
SUB484 071
UP320 000
AVERAGE528 285
PAETH280 507

Filter layout previews (row tint: NONE red, SUB orange, UP blue, AVERAGE green, PAETH purple):

entropy

adaptive

exhaustive

synthetic/djinni-retro.png

Source image: synthetic/djinni-retro.png

PNG metadata: width=512, height=512, color type=2, bit depth=16, bytes per pixel=6, bytes per row=3072, palette preserved=false, interlace preserved=true

StrategySize (bytes)Ratio vs bestNONESUBUPAVERAGEPAETHTime (ms)
original660 856169.59%0646003880
rewritten-baseline422 727108.48%0646003880
entropy389 854100.05%0673210124180
adaptive420 140107.82%010152722788
exhaustive420 128107.82%01015170281781
genetic389 671100.00%00512008455
fixed-none461 248118.37%51200006
fixed-sub464 175119.12%05120006
fixed-up389 671100.00%00512006
fixed-average493 487126.64%00051206
fixed-paeth434 354111.47%00005126

Winning strategy: fixed-up beat entropy by a tiny margin of 183 bytes (0.05% smaller).

Likely explanation: PAETH minimizes local residual magnitude. This image is strongly vertically coherent, making UP-style prediction particularly effective. The genetic search converged to the same filter sequence as fixed-up, independently rediscovering the identical filtered stream. Compared with entropy, the global repetition evidence is close. Repetition metrics are broadly similar (168694 vs 168457 repeated 32-byte substrings), but fixed-up has lower estimated LZ token cost, longer average matches, and more short-distance matches, indicating a simpler and more stationary residual stream. Although PAETH slightly minimizes residual magnitude better, compared with entropy, fixed-up generates a more compression-friendly residual stream with better match lengths, nearer references, and lower estimated LZ token cost.

Compression insight: PAETH minimizes local residuals, but simpler predictors create a more regular DEFLATE-friendly residual language. This suggests global phrase reuse matters more than per-pixel predictor cleverness for this image.

Compression observations:

Equivalent strategies: genetic ≡ fixed-up (identical filtered stream; runtime rows retained).

Diagnostics

_Note: diagnostics include approximate LZ longest-match estimation (sampled hash-chain over 32 KiB lookback)._

StrategyLZ cost bitsMatch coverage %Avg match lenMatches 64+Repeated 32BRepeated rowsShort dist %Long dist %
rewritten-baseline3 572 41368.46.41097157 357024.016.8
entropy3 268 12374.66.41082168 457030.512.2
adaptive3 570 48069.06.31047153 216025.116.6
exhaustive3 570 00569.06.31045153 349025.116.6
genetic3 262 33973.46.51081168 694033.611.7
fixed-none3 737 62152.59.51289142 546435.812.2
fixed-sub3 886 71257.97.01099132 780421.219.3
fixed-up3 262 33973.46.51081168 694033.611.7
fixed-average4 214 84257.75.761690 762018.423.4
fixed-paeth3 685 76366.26.41100154 187021.318.8

Directional smoothness:

MetricValue
Mean horizontal delta19.89
Mean vertical delta16.68
Vertical/Horizontal ratio0.84

Residual sumAbs:

FilterSumAbs
NONE53 643 199
SUB14 580 902
UP12 433 068
AVERAGE12 389 035
PAETH10 795 641

Filter layout previews (row tint: NONE red, SUB orange, UP blue, AVERAGE green, PAETH purple):

original

rewritten-baseline

entropy

adaptive

exhaustive

synthetic/pestilence.png

Source image: synthetic/pestilence.png

PNG metadata: width=1080, height=1080, color type=2, bit depth=8, bytes per pixel=3, bytes per row=3240, palette preserved=false, interlace preserved=true

StrategySize (bytes)Ratio vs bestNONESUBUPAVERAGEPAETHTime (ms)
original1 661 402108.43%0101449350
rewritten-baseline1 636 678106.82%0101449350
entropy1 625 279106.08%0278136864495
adaptive1 636 678106.82%01014493538
exhaustive1 636 788106.83%0101479322732
genetic1 532 195100.00%0010800031072
fixed-none2 475 325161.55%1080000031
fixed-sub1 767 997115.39%0108000030
fixed-up1 532 195100.00%0010800030
fixed-average1 685 819110.03%0001080030
fixed-paeth1 632 468106.54%0000108030

Winning strategy: fixed-up beat entropy by a moderate margin of 93 084 bytes (5.73% smaller).

Likely explanation: PAETH minimizes local residual magnitude. Directional smoothness is balanced across axes. The genetic search converged to the same filter sequence as fixed-up, independently rediscovering the identical filtered stream. Compared with entropy, fixed-up produces dramatically more repeated DEFLATE-friendly 32-byte substrings (65162 vs 37741), affecting global repeat structure. fixed-up outperforms PAETH overall because stronger global repetition dominates local residual minimization for final DEFLATE size.

Compression insight: PAETH minimizes local residuals, but simpler predictors create a more regular DEFLATE-friendly residual language. This suggests global phrase reuse matters more than per-pixel predictor cleverness for this image.

Compression observations:

Equivalent strategies: genetic ≡ fixed-up (identical filtered stream; runtime rows retained).

Diagnostics

_Note: diagnostics include approximate LZ longest-match estimation (sampled hash-chain over 32 KiB lookback)._

StrategyLZ cost bitsMatch coverage %Avg match lenMatches 64+Repeated 32BRepeated rowsShort dist %Long dist %
rewritten-baseline15 240 42794.24.52334 401026.79.8
entropy15 103 57894.34.51937 741027.69.7
adaptive15 240 42794.24.52334 401026.79.8
exhaustive15 240 66694.24.52234 282026.79.8
genetic14 024 63894.84.81965 162032.19.1
fixed-none20 575 49367.44.13511 615014.421.2
fixed-sub16 196 62892.74.32015 436022.111.2
fixed-up14 024 63894.84.81965 162032.19.1
fixed-average15 632 79794.94.4310 797024.29.9
fixed-paeth15 206 62894.14.52236 463027.09.9

Directional smoothness:

MetricValue
Mean horizontal delta5.79
Mean vertical delta5.11
Vertical/Horizontal ratio0.88

Residual sumAbs:

FilterSumAbs
NONE215 065 594
SUB20 414 613
UP17 864 505
AVERAGE15 509 928
PAETH14 331 495

Filter layout previews (row tint: NONE red, SUB orange, UP blue, AVERAGE green, PAETH purple):

original

rewritten-baseline

entropy

adaptive

exhaustive

synthetic/pestilence_90-degrees-ccw.png

Source image: synthetic/pestilence_90-degrees-ccw.png

PNG metadata: width=1080, height=1080, color type=6, bit depth=8, bytes per pixel=4, bytes per row=4320, palette preserved=false, interlace preserved=true

StrategySize (bytes)Ratio vs bestNONESUBUPAVERAGEPAETHTime (ms)
original2 392 778128.69%001080000
rewritten-baseline1 949 227104.83%001080000
entropy1 890 001101.65%0360306738664
adaptive1 896 134101.98%06043763747
exhaustive1 896 124101.97%0604376373400
genetic1 859 405100.00%0541270269039825
fixed-none2 589 044139.24%1080000037
fixed-sub1 879 290101.07%0108000037
fixed-up1 949 227104.83%0010800037
fixed-average1 909 252102.68%0001080037
fixed-paeth1 911 901102.82%0000108037

Winning strategy: genetic beat fixed-sub by a small margin of 19 885 bytes (1.06% smaller).

Likely explanation: PAETH minimizes local residual magnitude. Directional smoothness is balanced across axes. Compared with fixed-sub, genetic produces substantially more repeated DEFLATE-friendly 32-byte substrings (93317 vs 67572), affecting global repeat structure. genetic outperforms PAETH overall because stronger global repetition dominates local residual minimization for final DEFLATE size.

Compression insight: PAETH minimizes local residuals, but simpler predictors create a more regular DEFLATE-friendly residual language. This suggests global phrase reuse matters more than per-pixel predictor cleverness for this image.

Compression observations:

Diagnostics

_Note: diagnostics include approximate LZ longest-match estimation (sampled hash-chain over 32 KiB lookback)._

StrategyLZ cost bitsMatch coverage %Avg match lenMatches 64+Repeated 32BRepeated rowsShort dist %Long dist %
rewritten-baseline18 088 51794.75.2158170 343023.614.0
entropy17 913 37295.95.1139101 690025.711.1
adaptive17 988 30996.05.012488 908025.711.0
exhaustive17 988 56596.05.012388 802025.711.0
genetic17 504 08995.95.210493 317025.011.6
fixed-none23 150 80382.74.718939 210015.727.2
fixed-sub17 608 34495.45.310067 572024.111.8
fixed-up18 088 51794.75.2158170 343023.614.0
fixed-average18 143 93996.55.03948 553025.511.2
fixed-paeth18 091 60295.45.1152118 277025.011.4

Directional smoothness:

MetricValue
Mean horizontal delta3.90
Mean vertical delta4.41
Vertical/Horizontal ratio1.13

Residual sumAbs:

FilterSumAbs
NONE208 552 102
SUB18 161 674
UP20 767 092
AVERAGE15 192 734
PAETH14 752 635

Filter layout previews (row tint: NONE red, SUB orange, UP blue, AVERAGE green, PAETH purple):

entropy

adaptive

exhaustive

genetic

synthetic/red-to-white-horizontal-gradient-512.png

Source image: synthetic/red-to-white-horizontal-gradient-512.png

PNG metadata: width=512, height=512, color type=6, bit depth=8, bytes per pixel=4, bytes per row=2048, palette preserved=false, interlace preserved=true

StrategySize (bytes)Ratio vs bestNONESUBUPAVERAGEPAETHTime (ms)
original24 859416.12%00512000
rewritten-baseline10 311172.60%00512000
entropy7 986133.68%01128127256122
adaptive7 894132.14%0112803837
exhaustive7 894132.14%011280383745
genetic5 974100.00%05120008292
fixed-none9 044151.39%51200005
fixed-sub5 974100.00%05120005
fixed-up10 311172.60%00512005
fixed-average8 600143.96%00051205
fixed-paeth7 420124.20%00005125

Winning strategy: fixed-sub beat fixed-paeth by a large margin of 1 446 bytes (19.49% smaller).

Likely explanation: PAETH minimizes local residual magnitude. Directional smoothness is balanced across axes. The genetic search converged to the same filter sequence as fixed-sub, independently rediscovering the identical filtered stream. Compared with fixed-paeth, the global repetition evidence is close. Repetition metrics are broadly similar (1048921 vs 1048620 repeated 32-byte substrings), but fixed-sub has lower estimated LZ token cost, longer average matches, and more short-distance matches, indicating a simpler and more stationary residual stream. Although PAETH slightly minimizes residual magnitude better, compared with fixed-paeth, fixed-sub generates a more compression-friendly residual stream with better match lengths, nearer references, and lower estimated LZ token cost.

Compression insight: PAETH minimizes local residuals, but simpler predictors create a more regular DEFLATE-friendly residual language. This suggests global phrase reuse matters more than per-pixel predictor cleverness for this image.

Compression observations:

Equivalent strategies: genetic ≡ fixed-sub (identical filtered stream; runtime rows retained).

Diagnostics

_Note: diagnostics include approximate LZ longest-match estimation (sampled hash-chain over 32 KiB lookback)._

StrategyLZ cost bitsMatch coverage %Avg match lenMatches 64+Repeated 32BRepeated rowsShort dist %Long dist %
rewritten-baseline112 83499.9152.049861 046 631083.23.6
entropy99 620100.0173.748031 048 563085.24.2
adaptive99 376100.0173.648031 048 434085.24.2
exhaustive99 376100.0173.648031 048 434085.24.2
genetic91 965100.0185.945461 048 921090.92.2
fixed-none122 07699.9216.040901 046 10805.05.2
fixed-sub91 965100.0185.945461 048 921090.92.2
fixed-up112 83499.9152.049861 046 631083.23.6
fixed-average110 407100.0152.050481 046 725085.21.8
fixed-paeth99 383100.0173.749301 048 620083.04.2

Directional smoothness:

MetricValue
Mean horizontal delta0.25
Mean vertical delta0.23
Vertical/Horizontal ratio0.91

Residual sumAbs:

FilterSumAbs
NONE34 220 544
SUB262 144
UP304 718
AVERAGE588 546
PAETH216 840

Filter layout previews (row tint: NONE red, SUB orange, UP blue, AVERAGE green, PAETH purple):

entropy

adaptive

exhaustive

synthetic/red-to-white-vertical-gradient-512.png

Source image: synthetic/red-to-white-vertical-gradient-512.png

PNG metadata: width=512, height=512, color type=6, bit depth=8, bytes per pixel=4, bytes per row=2048, palette preserved=false, interlace preserved=true

StrategySize (bytes)Ratio vs bestNONESUBUPAVERAGEPAETHTime (ms)
original9 919356.67%00512000
rewritten-baseline2 869103.16%00512000
entropy2 854102.62%1342251251110
adaptive2 858102.77%03422502537
exhaustive2 858102.77%0342250253741
genetic3 056109.89%06416002887110
fixed-none3 549127.62%51200005
fixed-sub3 901140.27%05120005
fixed-up2 869103.16%00512005
fixed-average4 320155.34%00051205
fixed-paeth2 781100.00%00005125

Winning strategy: fixed-paeth beat entropy by a small margin of 73 bytes (2.56% smaller).

Likely explanation: PAETH minimizes local residual magnitude. Horizontal smoothness is stronger than vertical smoothness. Compared with entropy, the global repetition evidence is close. Repetition metrics are broadly similar (1048283 vs 1047407 repeated 32-byte substrings), and match quality differs more than raw repetition count; fixed-paeth shows the stronger local match structure overall. PAETH wins because predictor precision and global repetition are aligned in this stream.

Compression insight: Globally consistent predictors appear more valuable than locally optimal prediction. DEFLATE benefits when the residual stream uses a small, repeatable vocabulary.

Compression observations:

Diagnostics

_Note: diagnostics include approximate LZ longest-match estimation (sampled hash-chain over 32 KiB lookback)._

StrategyLZ cost bitsMatch coverage %Avg match lenMatches 64+Repeated 32BRepeated rowsShort dist %Long dist %
rewritten-baseline68 426100.0254.540971 048 320087.60.0
entropy69 894100.0253.640971 047 407087.70.0
adaptive69 898100.0253.540971 047 414087.70.0
exhaustive69 898100.0253.540971 047 414087.70.0
genetic70 257100.0250.441111 046 310087.70.0
fixed-none77 39199.9240.540961 031 38917693.80.0
fixed-sub78 03699.9246.541281 038 18817687.30.0
fixed-up68 426100.0254.540971 048 320087.60.0
fixed-average76 08099.9239.641051 038 247887.70.0
fixed-paeth69 034100.0254.340961 048 283087.60.0

Directional smoothness:

MetricValue
Mean horizontal delta0.11
Mean vertical delta0.28
Vertical/Horizontal ratio2.58

Residual sumAbs:

FilterSumAbs
NONE34 283 008
SUB180 288
UP293 888
AVERAGE604 894
PAETH78 810

Filter layout previews (row tint: NONE red, SUB orange, UP blue, AVERAGE green, PAETH purple):

entropy

adaptive

exhaustive

genetic