9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Steve Simon" <steve@quintile.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] shrinking an Image?
Date: Mon, 28 Aug 2006 23:17:33 +0100	[thread overview]
Message-ID: <c64f0af16da74a404aea9557eb123c85@quintile.net> (raw)
In-Reply-To: <d0a044e00bbf15ec356cf6c6329a77f1@proxima.alt.za>

> I find that resample(1) is not visually as faithful as (even?)
> page(1)'s built-in resizer.  I have not explored the possible causes,
> however.  For JPEG and 2, 4, 8 times resizing (shrinking) I find the
> cjpeg | djpeg combination to be preferable.

Just a guess, but prehaps page does resample in screen space 
(e.g. 16bpp) whereas resample(1) probably runs faithfully in YUV
(well, more likely RGB) space. This could easily have the effect of
amplifying the JPEG compression artiacts. Resampling in the incorrect
gamma land can also have strange effects like this.

-Steve


  parent reply	other threads:[~2006-08-28 22:17 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-26 21:13 Axel Belinfante
2006-08-26 21:21 ` andrey mirtchovski
2006-08-27  7:51   ` lucio
2006-08-27 14:37     ` Russ Cox
2006-08-27 16:45       ` lucio
2006-08-27 15:09     ` erik quanstrom
2006-08-27 16:46       ` lucio
2006-08-27 17:34       ` Axel Belinfante
2006-08-27 17:46         ` andrey mirtchovski
2006-08-27 18:22         ` erik quanstrom
2006-08-28 22:17     ` Steve Simon [this message]
2006-08-28 23:07       ` erik quanstrom
2006-08-27 17:20   ` Axel Belinfante
2006-08-26 21:22 ` Federico Benavento

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=c64f0af16da74a404aea9557eb123c85@quintile.net \
    --to=steve@quintile.net \
    --cc=9fans@cse.psu.edu \
    /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).