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: Mon, 8 Mar 2021 21:29:28 +0000 Message-ID: References: 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="3452"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Kangas , emacs-devel To: Evgeny Zajcev Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 08 22:30:55 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 1lJNSo-0000ns-NS for ged-emacs-devel@m.gmane-mx.org; Mon, 08 Mar 2021 22:30:54 +0100 Original-Received: from localhost ([::1]:50932 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJNSn-0003ig-HH for ged-emacs-devel@m.gmane-mx.org; Mon, 08 Mar 2021 16:30:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48174) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJNRX-0002jh-5k for emacs-devel@gnu.org; Mon, 08 Mar 2021 16:29:35 -0500 Original-Received: from outbound.soverin.net ([116.202.65.218]:50365) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJNRV-0001Tq-FL for emacs-devel@gnu.org; Mon, 08 Mar 2021 16:29:34 -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 05AB7600F5 for ; Mon, 8 Mar 2021 21:29:32 +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=1615238971; bh=9Hwe7LVEi0OAaPdC8j5tI5t11Q4IofXYwU0HX3OuCss=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JibELojm0QvDZ+FS+8WYyPc6YPNyBmNqaZF1z5KZC9UhdZvmKbULCxTVHajrDiue+ Vz5pEkbIBs5kcWVT0EcYao09XZY5YBmLu9g34n2ypve5qJg+Cu44RwHE1Io456cJCK voEB75QEP6AhXcFmXpULRBVVlJKXTLnStQBWQUu67mpkwtkGNQVt5xkFraYaMsRWq9 A+c+Wvm0VZ6aO7mSSokqjUVuI+MtraSzyDRS0hOqAqHPlWSwS1+NbrBDqqTQK/5jxk 8WmN7fT6jH73bgOB0JSYUgaxskkqbpRNp3Tcsx2vsduYdwKitjKfkqbwSX4IoVqZX5 JU31zn3y6es/w== Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id 752D2202AD3EE3; Mon, 8 Mar 2021 21:29:28 +0000 (GMT) Mail-Followup-To: Alan Third , Evgeny Zajcev , Stefan Kangas , emacs-devel Content-Disposition: inline In-Reply-To: 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:266223 Archived-At: On Mon, Mar 08, 2021 at 11:05:29PM +0300, Evgeny Zajcev wrote: > > BEST looks even better then good - > http://lgarc.narod.ru/pics/upscaled-best.png I suppose we shouldn't really be surprised. ;) Good to know though. Thanks for checking. > Is it possible to access image type at the filter application time? in that > case we can apply NEAREST for small xpm files and BEST otherwise I think we'd need to do it for pbms and pngs as well. The list may grow endlessly. I prefer the other idea of providing an option to whoever is loading the image. -- Alan Third