Gnus development mailing list
 help / color / mirror / Atom feed
From: Didier Verna <didier@lrde.epita.fr>
Subject: Re: face quantization
Date: Fri, 28 Oct 2005 10:32:13 +0200	[thread overview]
Message-ID: <muxwtjyxcs2.fsf@uzeb.lrde.epita.fr> (raw)
In-Reply-To: <v91x27yoxz.fsf@marauder.physik.uni-ulm.de> (Reiner Steib's message of "Thu, 27 Oct 2005 17:11:52 +0200")

Reiner Steib <reinersteib+gmane@imap.cc> 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 | pnmtopng".
>
> 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 the
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 the
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 ?

-- 
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être, France   Fax.+33 (1) 53 14 59 22   didier@xemacs.org



  reply	other threads:[~2005-10-28  8:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-13 20:12 Image formats for gnus-(x-)face-from-file Reiner Steib
2005-10-14  7:21 ` James Cloos
2005-10-14 16:51   ` Reiner Steib
2005-10-27 14:21     ` face quantization (was: Image formats for gnus-(x-)face-from-file) Didier Verna
2005-10-27 15:11       ` face quantization Reiner Steib
2005-10-28  8:32         ` Didier Verna [this message]
2005-10-28 10:52           ` Reiner Steib
2005-10-28 12:43             ` Didier Verna
2006-04-13  8:25               ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=muxwtjyxcs2.fsf@uzeb.lrde.epita.fr \
    --to=didier@lrde.epita.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).