From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61243 Path: news.gmane.org!not-for-mail From: Didier Verna Newsgroups: gmane.emacs.gnus.general Subject: Re: face quantization Date: Fri, 28 Oct 2005 10:32:13 +0200 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1130488802 15832 80.91.229.2 (28 Oct 2005 08:40:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 28 Oct 2005 08:40:02 +0000 (UTC) Original-X-From: ding-owner+m9775@lists.math.uh.edu Fri Oct 28 10:40:00 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EVPkr-0008PH-Ao for ding-account@gmane.org; Fri, 28 Oct 2005 10:38: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 1EVPk8-0008B2-00; Fri, 28 Oct 2005 03:37:44 -0500 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1EVPf0-0008Ax-00 for ding@lists.math.uh.edu; Fri, 28 Oct 2005 03:32:26 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1EVPex-0000A8-Ex for ding@lists.math.uh.edu; Fri, 28 Oct 2005 03:32:26 -0500 Original-Received: from smtp.lrde.epita.fr ([163.5.254.26] helo=kualalumpur.lrde.epita.fr) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1EVPeo-0006cZ-00 for ; Fri, 28 Oct 2005 10:32:14 +0200 Original-Received: from uzeb.lrde.epita.fr ([192.168.101.53]) by kualalumpur.lrde.epita.fr with esmtp (Exim 4.50) id 1EVPen-000672-Ol for ding@gnus.org; Fri, 28 Oct 2005 10:32:13 +0200 Original-Received: by uzeb.lrde.epita.fr (Postfix, from userid 17030) id AC7C55E2C0; Fri, 28 Oct 2005 10:32:13 +0200 (CEST) Original-To: ding@gnus.org In-Reply-To: (Reiner Steib's message of "Thu, 27 Oct 2005 17:11:52 +0200") X-Attribution: dvl X-Url: http://www.lrde.epita.fr/~didier X-Web: http://www.lrde.epita.fr/~didier X-Home-Page: http://www.lrde.epita.fr/~didier Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAADFBMVEVOOyyScF6/tK6ri3UH EgJMAAAACXBIWXMAAAsSAAALEgHS3X78AAABw0lEQVQozzXRMYsTQRQH8LfHTgRB2MBJQAjXWGg6 SwthAtoeLzDjgrBeb5XCO5EjLjZaX3Fne4jBZBb2LAQhcrtf4YQ7Ux3pE9lgsU3C5jlv9pzq/Xjz Z97MgDEnYNc9YxcYIxmNG3ANXo2RLZsA/+G1NLoQmC/Qmu0r2Ko73iFdKxeyaBBVyoXAjN8uibSE 2y5zQDldI59kcZhtshI5BGYYU7q8UjfYLFarStc4ojzJGa8sjleT+bLUfCqYD1SkxoJHNh8pmyTn WgrjthmTlpFsu8x6Yb7LCB9z51ORJd1ogDF3hqv5n9Z+pZ53LL4usr/oRThgnO6l1ZOQ8CHjm9ic RzGpB64DO3n4ji7uu8sFu/mUfqKbYLz9e0Lrs0sHI0JaTKhf49nLvChyhDnj17RYrkkBT2Cm05yI LqCTWMwOUipn/eAFY3xy9qPSyj6cxedeovVd9B2GupJNjUGDMerpdk8H/i3G2BdVeCWhyTCPum/i Hjx128wxDkiD7zm813uVBIQO4zSIBgDo7TJGQlt0hXRf7nsVeHinhghLKVTb/etRd0fDtoKAx/Fk aCsFry0ut/pN9FDLGEwaCBRSSOzF/wCBVhjdji+PWwAAACZ6VFh0Q29tbWVudAAAeNpzLkpNLElN USjPLMlQCMlIVXD39A0AAFLnByOQy2VwAAAAGnpUWHRKUEVHLUNvbG9yc3BhY2UAAHjaMwIAADMA MxEWfmMAAAAnelRYdEpQRUctU2FtcGxpbmctZmFjdG9ycwAAeNozqjDSMawwBGEAEYMC6WQPG2IA AAAASUVORK5CYII= X-Face: "I Reiner Steib wrote: > The algorithm in `gnus-face-from-file' itself hasn't changed. > But the default of `gnus-convert-image-to-face-command' is > "convert -scale 48x48! %s -colors %d png:-" > instead of > "djpeg %s | ppmnorm | pnmscale -width 48 -height 48 | ppmquant %d | pnm= topng". > > It's quite possible that the convert differs from the later. Could > you investigate? After some testing, it appears that convert does a better job (in t= he sense that the result is closer to the original image), although I tend to prefer the former solution because the results are brighter and a bit "artificial", kinda special-effect :-) 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 t= he last few months (I cound't find a trace of this in the ChangeLog) ? Finally, it might be worth considering that after quantization to 4= or 6 colors, the resulting PNG images are *bigger* than my original JPEG ones. So why not using JPG in the headers instead ? --=20 Didier Verna, didier@lrde.epita.fr, http://www.lrde.epita.fr/~didier EPITA / LRDE, 14-16 rue Voltaire Tel.+33 (1) 44 08 01 85 94276 Le Kremlin-Bic=EAtre, France Fax.+33 (1) 53 14 59 22 didier@xemac= s.org