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: Image transformation filter for upscaled images Date: Sun, 7 Mar 2021 22:12:43 +0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b647ff05bcf71a94" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35891"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Mar 07 20:13:48 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 1lIyqZ-0009EB-5T for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Mar 2021 20:13:47 +0100 Original-Received: from localhost ([::1]:35748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIyqY-0008As-81 for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Mar 2021 14:13:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46500) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIypp-0007kH-FS for emacs-devel@gnu.org; Sun, 07 Mar 2021 14:13:01 -0500 Original-Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]:45507) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lIypm-0003Wa-7M for emacs-devel@gnu.org; Sun, 07 Mar 2021 14:13:01 -0500 Original-Received: by mail-lf1-x12e.google.com with SMTP id k9so15943507lfo.12 for ; Sun, 07 Mar 2021 11:12:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=cHFwLrSCUYWbyHWg1Coq9poJJOccp2JieScOiUmy4+8=; b=e3/o47hcXNFsZdj5iIBUFD4TPXQMeCY4Ru96ICEkHrAwAm+6en51mG96CxLr0B6t/A sDEq5K6/lMChN6WJE4xgT64rIim88mBh5115vjszTmkGFatBq1yN3rEqhHUxkcS7F7N9 5ih3/6ptLh3zvqO7ZTvdALHRFrXP3DGHBa83ym3Q2KdFbSY5LczxQUZ0W/yDkDYEgl4n 5OimBtwy4ZNbFvcc4JSFqQvGiSNrFhlJnbS2OdJpl51Q4zvoBZhcGRDnrn1bxgj3fI6I optF5JnXNjsIxi4/nXTcaJwF8H20zfs2OYPd2pWVi2Z0M5k3TK18fcvln7CoA9PxPGYN NJuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=cHFwLrSCUYWbyHWg1Coq9poJJOccp2JieScOiUmy4+8=; b=DBaz1z1WSQMC6Vnkq3+Gc6avP7TMeP03gOZYJ2AfhiAKBif+bnxl26cGdmMaEPXuMQ VQdFJHVJ0GvFeIcv0/kXoeOX5Jmhh2JRbhlkIUXZXPvGhqAI7adg+pwjs+FijeIjBd8C iHFoYCuHCyV/DJp0cmQFhgh6k3UqDO0eYKbMDP/MSGV5RxyNqlW35P9JZXV4niDdk+0W S+Iif9ad+rPRgM6h5zgdDZQYokzUoNr6EXSKRtCY6jZznRQm7OW0P+hmxua0L/DZ8iSU dLZad8QLyTRA+Gk0r+XUp5s/HAwTd0Cx8Br0JNLeiL2fU9zYPRyUjsA0y1w2g+TqpeKe LmlQ== X-Gm-Message-State: AOAM532E77PjBdt59vPQ+jckkg60pZwCdcGDoJ9KZOtWqhS9r+Snrco/ XJdNCyUvg7bxtnT4ybhCkQ50OelzFCxKfXc2WA7ukHnB1n0= X-Google-Smtp-Source: ABdhPJyfau7za85kiWy+9/TPngJeG2skE2aZZJbDs18q0KWMKgi4314v8gniVHMgZ8+s81KcZ6TAUr63S77IvhKMZWY= X-Received: by 2002:ac2:4254:: with SMTP id m20mr2091739lfl.474.1615144374650; Sun, 07 Mar 2021 11:12:54 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::12e; envelope-from=lg.zevlg@gmail.com; helo=mail-lf1-x12e.google.com X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) BAYES_20=-0.001, 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:266144 Archived-At: --000000000000b647ff05bcf71a94 Content-Type: text/plain; charset="UTF-8" Currently, image transformation for upscaled images uses NEAREST filter, which is fast, but renders very bad results for images with text inside. Maybe change it to GOOD, which is also fast, but renders more decent results Here is I've got two screenshots showing the difference: NEAREST (currently hardcoded in Emacs) - http://lgarc.narod.ru/pics/upscaled-nearest.png GOOD (my proposal) - http://lgarc.narod.ru/pics/upscaled-good.png What do you think? Thanks -- lg --000000000000b647ff05bcf71a94 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Currently, image transformation for upscaled images u= ses NEAREST filter, which is fast, but renders very bad results for images = with text inside.

Maybe change it to GOOD, which i= s also fast, but renders more decent results

Here = is I've got two screenshots showing the difference:

NEAREST (currently hardcoded in Emacs) - http://lgarc.narod.ru/pics/upscaled-nearest= .png


What do you think?

=
Thanks

--
lg
--000000000000b647ff05bcf71a94--