From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Image transformation filter for upscaled images Date: Mon, 08 Mar 2021 22:31:16 +0100 Message-ID: <87v9a1l4d7.fsf@gnus.org> References: <871rcpo3nm.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13383"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Evgeny Zajcev , Stefan Kangas , g@idiocy.org, emacs-devel To: Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 08 22:33:17 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 1lJNV7-0003Pk-6A for ged-emacs-devel@m.gmane-mx.org; Mon, 08 Mar 2021 22:33:17 +0100 Original-Received: from localhost ([::1]:56110 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJNV6-00060A-8W for ged-emacs-devel@m.gmane-mx.org; Mon, 08 Mar 2021 16:33:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48694) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJNTR-0004ON-Cz for emacs-devel@gnu.org; Mon, 08 Mar 2021 16:31:33 -0500 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:32994) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJNTJ-0002Wy-W1 for emacs-devel@gnu.org; Mon, 08 Mar 2021 16:31:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=NDnRIqcauLqKGCp1pnzPb7Iax3wlJQugXbuY42KxAeo=; b=cC+rGvL3rohFLOlrkDn29EWEpb Upnm+5VeLlZB/ypdTjtE4McsG17MTrI7+Ouk6f7ZfmoN+VkZ+MXCi5YAaBGzOu9x4D1d+rmgh+n+Y yYuN5oky6yJ6FjWOA6EnAyRnIZfhB8TeYl/3euyNJ/I5DyJPbCypY1tFZGqde9JHGFl4=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lJNTC-0006mU-1F; Mon, 08 Mar 2021 22:31:21 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEXpmB4gL4dEJEvj XRublpjCLCYWDg/////Hlt10AAAAAWJLR0QHFmGI6wAAAAd0SU1FB+UDCBUdKjZztv8AAAG1SURB VDjLddHNbuQgDABgutu9r6lmzwspOY+S0PNU5QFaR/Q+rOL3f4Ta/MyQqIuUoPBhGxyl7uNB/WeY 8zeLIVwU/O5XZvVz5ofhBzw9hnCHMpblskAIy+UIlyWEV4aQv86cpAaEkGEOdeMNFt78Gp5DeDtA WHh/0LeAG7x5DgBYvwGQ8XSHmCe/ThlOHcjgDB8Z7rkKMBkAw89whAhgExk4RU4ruRsg6GkbyWhf Fxp8gMZIdIV4AAN69UQJ3AH4pOd5JOIiO0AA984RXGQPfItTfKGuiGolQL8XcDuQS//9zHDqATOU CN1DbtQwSXGAHvgW3HKfNvSmFikAzqHRvxx3CWuRDMh5rTPo4hptLaJKiYgj2WGdIrabZDB6jtyO fzM6PnIpovJhB8+dpW2OAleNaK2yFhHWKBFpniND0tZmsNw4rIAkrb+BXbm2pPLSFQJdAazsZ4jb uAcnpTnHWmYDBWTOCzT4PeixrNM2VdAZAOo6JczTtYD8vCYNoAK0XLYH+UctJJU3L1RoEdSB6QKI xgpQ4M8eKINk4u9R8qfkPlPNpUrAWHfHvEFuItDVbacA+AIXCg5SVfXFaAAAACV0RVh0ZGF0ZTpj cmVhdGUAMjAyMS0wMy0wOFQyMToyOTo0MSswMDowMHFNkbkAAAAldEVYdGRhdGU6bW9kaWZ5ADIw MjEtMDMtMDhUMjE6Mjk6NDErMDA6MDAAECkFAAAAAElFTkSuQmCC X-Now-Playing: The Police's =?utf-8?Q?=5FZenyatt=C3=A0?= Mondatta_: "Canary In A Coalmine" In-Reply-To: (Alan Third's message of "Mon, 8 Mar 2021 21:27:03 +0000") Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org 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, 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:266224 Archived-At: 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. > Although I can see that that won't help with the likes of eww where > you just don't know what type of image you're loading. Well, it'd be up to the application to add heuristics (if any). > (Also, I think :filter may be taken, so perhaps just ":smooth t/nil" > or something...) Sure. Or... :scaling-algorithm... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no