From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: Image transformation filter for upscaled images Date: Wed, 10 Mar 2021 21:45:52 +0000 Message-ID: References: <871rcpo3nm.fsf@gnus.org> <87v9a1l4d7.fsf@gnus.org> <87zgzclb5w.fsf@gnus.org> <87sg53jc6q.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31631"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Evgeny Zajcev , Stefan Kangas , emacs-devel To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Mar 10 22:56:23 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 1lK6oZ-000884-52 for ged-emacs-devel@m.gmane-mx.org; Wed, 10 Mar 2021 22:56:23 +0100 Original-Received: from localhost ([::1]:50446 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lK6oY-0001le-6Z for ged-emacs-devel@m.gmane-mx.org; Wed, 10 Mar 2021 16:56:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33490) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lK6eX-0004DL-Eg for emacs-devel@gnu.org; Wed, 10 Mar 2021 16:46:01 -0500 Original-Received: from outbound.soverin.net ([116.202.65.218]:34783) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lK6eV-0004eq-IG for emacs-devel@gnu.org; Wed, 10 Mar 2021 16:46:01 -0500 Original-Received: from smtp.soverin.net (unknown [10.10.3.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 72FF46008B; Wed, 10 Mar 2021 21:45:57 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.138]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1615412756; bh=gsjKhOG9MVzP+x0VKU+mHKuCp1wLDzRSWyvjaT8xrA4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ehc+TbqCMqUf1UiO3f8w1p9H+RqSw5idaNjqEwWCLHiLIeeJRMnK1XmNrpdH4KfL8 zFNr8nN0y0NRza1F2WId2y8pjUCOwTX2587tvzFgA0+tf7LfUcx4yEvQyfaZntyIZO MD4QpHtxz/6eEArZcWc7c0CAg0SACSi21QNaxnPIgXVK8fqveMx5rDw9yjq6bclSen JaOZKRRQjnYPKDPf1jU/T+loeWhkRHvA45OWvGkV7d4jHtfDGWW63rnR35k84Wjncf 94YiFH+40/VgXo0yZP9Rhu7Aa3vQIDUd0gzsCrKqdaeO+tQUspchoAc4PkAh8OMtWS UMshGAUebFizA== Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id E34FF202AE2EDB; Wed, 10 Mar 2021 21:45:52 +0000 (GMT) Mail-Followup-To: Alan Third , Lars Ingebrigtsen , Evgeny Zajcev , Stefan Kangas , emacs-devel Content-Disposition: inline In-Reply-To: <87sg53jc6q.fsf@gnus.org> Received-SPF: pass client-ip=116.202.65.218; envelope-from=alan@idiocy.org; helo=outbound.soverin.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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:266307 Archived-At: On Wed, Mar 10, 2021 at 03:49:49PM +0100, Lars Ingebrigtsen wrote: > Alan Third writes: > > > Attached is a patch that should allow us to set smoothing using > > ":transform-smoothing t", or nil to disable it and use nearest > > neighbour. Also sm in image mode lets you set it directly, and > > doc-view will always use it. > > > > I'm not sure about the term "smoothing", but it seemed better than > > filter or similar. I dunno. > > Sounds good to me, and the patch looks good to me, too. I've pushed it to master as c93447eac6f801d7ff97ed6dad368dc49d55cc46. > We should probably introduce something like the defcustom I described > elsewhere in this thread, and use it in `create-image' by default, so > that downscaling images will still use smoothing. I like this idea, but I felt somewhat out of my depth trying to implement it. -- Alan Third