diff --git a/src/nQuant/j2se/GilbertCurve.java b/src/nQuant/j2se/GilbertCurve.java index a242b62..4859b49 100644 --- a/src/nQuant/j2se/GilbertCurve.java +++ b/src/nQuant/j2se/GilbertCurve.java @@ -69,7 +69,7 @@ public int compare(ErrorBox o1, ErrorBox o2) { DITHER_MAX = weight < .01 ? (weight > .0025) ? (byte) 25 : 16 : 9; double edge = hasAlpha ? 1 : Math.exp(weight) - .25; - double deviation = weight > .002 ? -.75 : 1; + double deviation = weight > .002 ? -.25 : 1; ditherMax = (hasAlpha || DITHER_MAX > 9) ? (byte) BitmapUtilities.sqr(Math.sqrt(DITHER_MAX) + edge * deviation) : DITHER_MAX; final int density = palette.length > 16 ? 3200 : 1500; if(palette.length / weight > 5000 && (weight > .045 || (weight > .01 && palette.length <= 64)))