From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.devel Subject: Re: Image transformation filter for upscaled images Date: Tue, 09 Mar 2021 22:31:29 +0000 Message-ID: <87im60klha.fsf@tcd.ie> References: <871rcpo3nm.fsf@gnus.org> <87v9a1l4d7.fsf@gnus.org> <87zgzclb5w.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="21756"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Lars Ingebrigtsen , Evgeny Zajcev , Stefan Kangas , emacs-devel To: Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 09 23:32:59 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 1lJkuR-0005WN-1f for ged-emacs-devel@m.gmane-mx.org; Tue, 09 Mar 2021 23:32:59 +0100 Original-Received: from localhost ([::1]:49410 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJkuP-0004S4-U0 for ged-emacs-devel@m.gmane-mx.org; Tue, 09 Mar 2021 17:32:57 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJkt6-0003PU-B8 for emacs-devel@gnu.org; Tue, 09 Mar 2021 17:31:36 -0500 Original-Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:43801) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJkt4-0006gy-8v for emacs-devel@gnu.org; Tue, 09 Mar 2021 17:31:36 -0500 Original-Received: by mail-wm1-x329.google.com with SMTP id u5-20020a7bcb050000b029010e9316b9d5so5388661wmj.2 for ; Tue, 09 Mar 2021 14:31:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=7xuTPXQeZdhCGO/kU8n9lf/jwZcpgcCVOh2+EEGwt78=; b=NnRWKj3EKXyqsiLItu1TBr1mNQjw8OIeEvNB025iSelV1ZNIofaEcEms3ciwX8a2xz 9Vy7EH2Uks8OdYXQQHRcdFjB9+QOjx6+6mPuCxZxRWv7jzMeBOenqHBNGE5uD3TPGD7j 1skhWp+8CF3gW+D2QM0z+pRLYMxQZ8AEGLRDxRrCGGyGG7cWVISvQJm7YObDJm3X4QGg //5Xow5VF9mEclgYyqpJLGRnuIRGSsuHyhWdnP3H7EhGa8h+dvLSu7cXI3+k8MN1OdYR adKkswOPR//pk0FN9bHPP9QsWvTMoG9rXWW8cLCAjFy/foy6duamVUCaCMVprork00Ub Jm5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=7xuTPXQeZdhCGO/kU8n9lf/jwZcpgcCVOh2+EEGwt78=; b=kGYEgBOCtOJMlrm0xocHZg63W8bXq4QSS/4tEWsqUAXEHFxLJWRnsoEW12fW6cYHq9 VEA15EUukto1yVnKiTzvd/7ty5UxLxpzFVZxbeYMv+Bv016GQYAsBT0ISa3VHhuqsW+j 6QhGsmO8gc8cEp00hoBLZlhMJyvh7NuV32iH0FBZrzHZDRTWNv3zaWLqv+zzXGQFVisy PgRdHJF0fY9bHxx2FQxzZlRwujqD0mqpx6Zpo7aFePpVJPEEjjwHO7DYg+qbnK5WxXay ZBcUsbw0pmfuB0bCIDQIQYLOaAscppweW+UU6+uuW84m62+ZwbbG/gLpjoxuUMF0YCTc 5kRw== X-Gm-Message-State: AOAM532ope7p/dc7Q91pF1LJ9Brwj/tcwfcQsVPqV45lAlBivNArn8zP 4RJO+t5VO/YRVFdC7d/ypEP5/g== X-Google-Smtp-Source: ABdhPJx+DXzJ2F9kXotx+Nf2wwzpvHBXsM090AiEKK0PE9pAWEK30bw+1NexkooDl3p8B3MT0eCZvw== X-Received: by 2002:a7b:c4d1:: with SMTP id g17mr89115wmk.101.1615329092127; Tue, 09 Mar 2021 14:31:32 -0800 (PST) Original-Received: from localhost ([2a02:8084:20e2:c380:d15:339e:aa10:60f1]) by smtp.gmail.com with ESMTPSA id n6sm6447521wmd.27.2021.03.09.14.31.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Mar 2021 14:31:31 -0800 (PST) In-Reply-To: (Alan Third's message of "Tue, 9 Mar 2021 18:12:34 +0000") Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=contovob@tcd.ie; helo=mail-wm1-x329.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, 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:266255 Archived-At: 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. Thanks, just one nit/question from me: > +(defun image-transform-set-smoothing (smoothing) > + (interactive (list (completing-read "Smoothing: " > + '(none smooth) nil t))) I know that completing-read can handle a list of symbols, but its documentation says only list of strings. Who's right? Do we care? -- Basil