From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Evgeny Zajcev Newsgroups: gmane.emacs.devel Subject: Re: Image transformation filter for upscaled images Date: Tue, 9 Mar 2021 11:34:28 +0300 Message-ID: References: <871rcpo3nm.fsf@gnus.org> <87v9a1l4d7.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000da40ab05bd166b7a" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23323"; mail-complaints-to="usenet@ciao.gmane.io" To: Alan Third , Lars Ingebrigtsen , Evgeny Zajcev , Stefan Kangas , emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 09 09:36:05 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lJXqX-0005v1-1u for ged-emacs-devel@m.gmane-mx.org; Tue, 09 Mar 2021 09:36:05 +0100 Original-Received: from localhost ([::1]:34070 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJXqV-0003KA-UA for ged-emacs-devel@m.gmane-mx.org; Tue, 09 Mar 2021 03:36:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47030) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJXpK-0002O8-5u for emacs-devel@gnu.org; Tue, 09 Mar 2021 03:34:51 -0500 Original-Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]:46055) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJXpC-0005UE-2v for emacs-devel@gnu.org; Tue, 09 Mar 2021 03:34:49 -0500 Original-Received: by mail-lf1-x132.google.com with SMTP id k9so25641360lfo.12 for ; Tue, 09 Mar 2021 00:34:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=ocP87fcIP3dmrlqRy++uYuC6YehV+mumpWcPCdGpCgc=; b=qQVUo/cCyaxvOb2k6E2PK/78XZO0VOLbqu+hssFAOdK9pAPWHpj2OPhW8k5hWGBv+N SZg+fTXiSRL3jN0+3VcIK3II580FRSwdKI6x6RSFw8/fBkWv6GtvMFw/5hZQ823OJ4H9 mO4cBM1cS7DRIf3n8CpY7yTLXWieMNoC036DI2NWUeJQuODfSJYLhJKABg/nxyA5TvQU aJGluzJfT9mdkiWvADrE87F7DI4ZLA0DEKM97XaO3WVjxZ6lGPrEcy2O7Up84jpApVn+ fSIFHwxgoq4NL98B3TSKel694dHCiEUZ+W6kzKTb8YF17CrgzMsXItp8JD+ixbQr2Ufj frXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=ocP87fcIP3dmrlqRy++uYuC6YehV+mumpWcPCdGpCgc=; b=fn31gn6gUHpK60/1ynxuP4pFUhkP8Vbd4d+jWiWXk5NgB50KmfmLRf8Ws71e39Ch9W oNZb7UGkVkxH9j2CeQe2w9BneC/fcMP/VSwENti+lbE6xVOFzu6pSJbOHuJkHqrFtMPY 9sPP9CrJTkvUqA5Tbr1wrREvCb85D7gy3gffYQSxRs77f62sDDZzZ8WHbY1/NnpDwWyP bfPET3Z26IE4acCHzJpaFIBzH7sGGW8RVWi+q+EB3H8bL2CoNNxhVX05xhhg6u4GdNDt S9EhWzz35Pr46QGMymI+D6i0R4pwsfkBzVC695Artlkz8Ue4nyTcKnADCPRD7Ylw+w2w 1ALg== X-Gm-Message-State: AOAM531ZBtTrP6kMSpM3wUjJVKIC60Cd1IQCb42B92DP5+ltKWPkH3Zv 0cYkrUEPnbx1JNBoKbCy1r8PVm8K2MLUjEkFb9AwTyY2OnU= X-Google-Smtp-Source: ABdhPJyu/9JE+aH5vh374qy67dIrrMbJxQOVqxdeyVfQaPBX0m3qtOuDyaq4cO8gkHFTTPix+yQzm9L40dCt2bW7x7k= X-Received: by 2002:a19:8048:: with SMTP id b69mr17601106lfd.458.1615278879948; Tue, 09 Mar 2021 00:34:39 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::132; envelope-from=lg.zevlg@gmail.com; helo=mail-lf1-x132.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:266233 Archived-At: --000000000000da40ab05bd166b7a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =D0=B2=D1=82, 9 =D0=BC=D0=B0=D1=80. 2021 =D0=B3. =D0=B2 00:59, Alan Third <= alan@idiocy.org>: > On Mon, Mar 08, 2021 at 10:31:16PM +0100, Lars Ingebrigtsen wrote: > > Alan Third writes: > > > > > I don't know, I'd be inclined to go with adding an image option, like > > > ":filter smooth" or ":filter nearest" and letting mode authors choose > > > what they think is best. > > > > Yes, that's an excellent idea. > > Not my idea, but certainly a good one. :) > > > > (Also, I think :filter may be taken, so perhaps just ":smooth t/nil" > > > or something...) > > > > Sure. Or... :scaling-algorithm... > > I was wrong, :filter is available, I'll have a bit more of a think > about what we want to call it. > > As for default behaviour, I'm inclined to stick with what we have > where scaling down uses best and scaling up uses nearest neighbour but > any use of :filter (or whatever) over-rides the default. Anyone have > an opinion? Do we just want to use best everywhere by default? > I vote for "best" everywhere by default, making doc-view shine out-of-box --=20 lg --000000000000da40ab05bd166b7a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
=D0=B2=D1=82, 9 =D0=BC=D0=B0=D1=80. 2= 021 =D0=B3. =D0=B2 00:59, Alan Third <alan@idiocy.org>:
On Mon, Mar 08, 2021 at 10:31:16PM +0100, Lars Ingebrigtsen wrot= e:
> Alan Third <al= an@idiocy.org> writes:
>
> > I don't know, I'd be inclined to go with adding an image = option, like
> > ":filter smooth" or ":filter nearest" and let= ting mode authors choose
> > what they think is best.
>
> Yes, that's an excellent idea.

Not my idea, but certainly a good one. :)

> > (Also, I think :filter may be taken, so perhaps just ":smoot= h t/nil"
> > or something...)
>
> Sure.=C2=A0 Or...=C2=A0 :scaling-algorithm...

I was wrong, :filter is available, I'll have a bit more of a think
about what we want to call it.

As for default behaviour, I'm inclined to stick with what we have
where scaling down uses best and scaling up uses nearest neighbour but
any use of :filter (or whatever) over-rides the default. Anyone have
an opinion? Do we just want to use best everywhere by default?

I vote for "best" everywhere by default, = making doc-view shine out-of-box

--
lg
--000000000000da40ab05bd166b7a--