Gnus development mailing list
 help / color / mirror / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
Subject: Re: face quantization
Date: Fri, 28 Oct 2005 12:52:10 +0200	[thread overview]
Message-ID: <v9slulewx1.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <muxwtjyxcs2.fsf@uzeb.lrde.epita.fr>

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
| <gs234@cam.ac.uk>.
`----

>         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/




  reply	other threads:[~2005-10-28 10:52 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
2005-10-28 10:52           ` Reiner Steib [this message]
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=v9slulewx1.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    /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).