Skip to content

Commit 798cabc

Browse files
authored
Add files via upload
1 parent 80eb17d commit 798cabc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nQuant.Master/PnnQuantizer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ internal virtual void Pnnquan(int[] pixels, ref Color[] palettes, ref int nMaxCo
179179
nMaxColors = -1;
180180

181181
weight = Math.Min(0.9, nMaxColors * 1.0 / maxbins);
182-
if (weight < .03 && PG < 1 && PG >= coeffs[0, 1]) {
182+
if (weight < .04 && PG < 1 && PG >= coeffs[0, 1]) {
183183
PR = PG = PB = PA = 1;
184184
if (nMaxColors >= 64)
185185
quan_rt = 0;

0 commit comments

Comments
 (0)