From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#33226: chromium, firefox sharper than doc-view Date: Sun, 14 Jul 2019 20:01:23 +0800 Message-ID: <87v9w4zuy4.5.fsf@jidanni.org> References: <87h8h0nafo.fsf@jidanni.org> <87imsa3t66.fsf@mouse.gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="84121"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 33226@debbugs.gnu.org, tsdh@gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 14 22:19:05 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hmkxd-000LfN-2a for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Jul 2019 22:19:05 +0200 Original-Received: from localhost ([::1]:34068 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hmkvq-000626-Tu for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Jul 2019 16:17:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50052) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hmkvh-0005hK-R0 for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2019 16:17:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hmkvg-0005BW-GY for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2019 16:17:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37238) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hmkvf-0005Aq-Cy for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2019 16:17:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hmkvf-0006rD-84 for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2019 16:17:03 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87h8h0nafo.fsf@jidanni.org> Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Jul 2019 20:17:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33226 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo unreproducible Original-Received: via spool by 33226-submit@debbugs.gnu.org id=B33226.156313537726273 (code B ref 33226); Sun, 14 Jul 2019 20:17:03 +0000 Original-Received: (at 33226) by debbugs.gnu.org; 14 Jul 2019 20:16:17 +0000 Original-Received: from localhost ([127.0.0.1]:46055 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmkuu-0006ph-Jr for submit@debbugs.gnu.org; Sun, 14 Jul 2019 16:16:16 -0400 Original-Received: from black.elm.relay.mailchannels.net ([23.83.212.19]:65210) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmkun-0006pF-8E for 33226@debbugs.gnu.org; Sun, 14 Jul 2019 16:16:12 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 2E8275011F8; Sun, 14 Jul 2019 20:16:08 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a88.g.dreamhost.com (100-96-4-184.trex.outbound.svc.cluster.local [100.96.4.184]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 6F82B501179; Sun, 14 Jul 2019 20:16:07 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from pdx1-sub0-mail-a88.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.3); Sun, 14 Jul 2019 20:16:08 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Decisive-Versed: 5d7852723c0cdc49_1563135368007_3426114020 X-MC-Loop-Signature: 1563135368007:3303897173 X-MC-Ingress-Time: 1563135368007 Original-Received: from pdx1-sub0-mail-a88.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a88.g.dreamhost.com (Postfix) with ESMTP id 3327B80555; Sun, 14 Jul 2019 13:16:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=rxNwtwzyTsLhuyWv+PbjiK5ZDKA=; b=cpLAWu8HQTk20 Nj0S/BwNxhTLKau5onn/yppC+btq37HvP6DZo3Ahz0LY07fdtwN0HiQg7OVbdx0I Rc973O2vO2FRdBXzjS7NuTpXJNBcqNIoJ5CrA/mW1WNfLQ+B/OkOQol78pXxRvSg 4LzQdBpC84tT5YI0/hBc+HYZDUt5so= Original-Received: from jidanni.org (114-41-13-208.dynamic-ip.hinet.net [114.41.13.208]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a88.g.dreamhost.com (Postfix) with ESMTPSA id 066A780533; Sun, 14 Jul 2019 13:16:00 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a88 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrheehgdduheduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhffffkgggtsehttdertddttdejnecuhfhrohhmpejnnjjnucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqeenucffohhmrghinheprhhishdrghhovhdrthifnecukfhppeduudegrdeguddrudefrddvtdeknecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehjihgurghnnhhirdhorhhgpdhinhgvthepuddugedrgedurddufedrvddtkedprhgvthhurhhnqdhprghthheppeeruhhtfhdqkeerueerheeimhfphefnihehhegsveekreepucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqedpmhgrihhlfhhrohhmpehjihgurghnnhhisehjihgurghnnhhirdhorhhgpdhnrhgtphhtthhopehtshguhhesghhnuhdrohhrghenucevlhhushht vghrufhiiigvpedt X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:163035 Archived-At: LI> I'm unable to reproduce this on the trunk -- PDFs (even after zooming) LI> look fine to me in doc-view. Are you still seeing this? Try: wget -O x.pdf https://www.ris.gov.tw/documents/data/2/4/4e050f2b-9778-4a7d-a764-241e43d659f1.pdf chromium x.pdf # then zoom with the "+" button until 400%. (Yup 400 percent, or higher still.) gv x.pdf # then zoom to "10.00", the maximum. emacs x.pdf #and then use "+ runs the command doc-view-enlarge" many times. We observe a /tmp/docview*/*.pdf-*/ is created and contains a png conversion of the PDF, and a second factor file: page-1.png, resolution.el. We note that the resolution.el has not changed. Inside is "100" and that has not changed despite our zooming. So that's probably why the file doesn't look as clear in docview vs. the others! You must admit it is fuzzier at 400% zoom than the others. (info "(emacs) DocView Navigation") says You can enlarge or shrink the document with ‘+’ (‘doc-view-enlarge’) and ‘-’ (‘doc-view-shrink’). These commands work by reconverting the document at the new size. To specify the default size for DocView, customize the variable ‘doc-view-resolution’. doc-view-resolution is a variable defined in ‘doc-view.el’. Its value is 100 Documentation: Dots per inch resolution used to render the documents. Higher values result in larger images. g runs the command doc-view-revert-buffer but it doesn't make the enlarged document clearer. One needs to set doc-view-resolution higher before opening the file. But wait! *Not* on the INFO page is (defcustom doc-view-scale-internally t "Whether we should try to rescale images ourselves. If nil, the document is re-rendered every time the scaling factor is modified. This only has an effect if the image libraries linked with Emacs support scaling." :version "24.4" :type 'boolean) And indeed, setting it to nil makes the bug go away, as proved by resolution.el finnaly changing each time we hit "+". So, this critical variable, if t, will cause scaling to silently fail in half the cases ("if the image libraries linked with Emacs..." fails. So should be nil by default, so that it never fails, I suppose. Or, how about instead of failing, simply do the nil action if the t action fails! By the way, when it is nil, one sees DocView: process pdf/ps->png changed status to killed. messages each time one hits "+". Also I think there in /tmp/ it should save a copy of the previous few scales each time we hit + or - so we can quickly zoom in and back out etc. emacs-version "26.1"