From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61246 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: face quantization Date: Fri, 28 Oct 2005 12:52:10 +0200 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: References: Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1130498141 12069 80.91.229.2 (28 Oct 2005 11:15:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 28 Oct 2005 11:15:41 +0000 (UTC) Original-X-From: ding-owner+m9779@lists.math.uh.edu Fri Oct 28 13:15:33 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EVSAr-0007yR-Fs for ding-account@gmane.org; Fri, 28 Oct 2005 13:13:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1EVSAb-0000BE-00; Fri, 28 Oct 2005 06:13:13 -0500 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1EVS7G-0000B8-00 for ding@lists.math.uh.edu; Fri, 28 Oct 2005 06:09:46 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1EVS79-0001Fm-Is for ding@lists.math.uh.edu; Fri, 28 Oct 2005 06:09:46 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1EVS78-0008RO-00 for ; Fri, 28 Oct 2005 13:09:38 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EVS5b-0006Eq-71 for ding@gnus.org; Fri, 28 Oct 2005 13:08:03 +0200 Original-Received: from bridgekeeper.physik.uni-ulm.de ([134.60.10.123]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 28 Oct 2005 13:08:03 +0200 Original-Received: from Reiner.Steib by bridgekeeper.physik.uni-ulm.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 28 Oct 2005 13:08:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-To: ding@gnus.org Original-Lines: 47 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de X-Face: :6KQZ[nyoS_edmB.%gw-=)BYth^|2+Y+^cu%I$FSx!&>-'om>3H7A|M&n(V7fIo3P.;yo.b yq4$p;ZaBtkv)\}biaiBQe"mD}iib1AA@99-fZ7i*bLhNRVC&0Wkxg9)SH?oWc@{ Mail-Copies-To: nobody User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:fp2sY9PtVd22cK6ondPLL5jIi5k= X-Spam-Score: -2.5 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:61246 Archived-At: On Fri, Oct 28 2005, Didier Verna wrote: > I also noticed that given my original jpg faces that are already at a > size of 48x48, the average quantization I get is 4 to 6 which is quite poor. > Maybe the size limit of 726 has something to do with it. As it changed in the > last few months (I cound't find a trace of this in the ChangeLog) ? It hasn't changed since... ,----[ C-x v g / vc-annotate ] | revision 6.45 | date: 2003/04/21 11:42:07; author: kaig; state: Exp; lines: +3 -3 | (gnus-face-from-file, gnus-convert-png-to-face): | Max length of header is 726, not 740. From Gaute B Strokkenes | . `---- > Finally, it might be worth considering that after > quantization to 4 or 6 colors, BTW, would it make sense to decrease by one instead of two at least if quant becomes small? --8<---------------cut here---------------start------------->8--- --- gnus-fun.el 14 Oct 2005 18:51:50 +0200 7.10 +++ gnus-fun.el 28 Oct 2005 12:50:42 +0200 @@ -172,7 +172,7 @@ quant)))) (if (> (length attempt) 726) (progn - (setq quant (- quant 2)) + (setq quant (- quant (if (< quant 10) 1 2))) (gnus-message 9 "Length %d; trying quant %d" (length attempt) quant)) (setq done t))) --8<---------------cut here---------------end--------------->8--- > the resulting PNG images are *bigger* than my original JPEG ones. > So why not using JPG in the headers instead ? Ask Lars; his specification says PNG. :-) Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/