From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id IEG8I+AdQV+GdQAA0tVLHw (envelope-from ) for ; Sat, 22 Aug 2020 13:30:08 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id qBS1H+AdQV+mNAAA1q6Kng (envelope-from ) for ; Sat, 22 Aug 2020 13:30:08 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D4D01940509 for ; Sat, 22 Aug 2020 13:30:07 +0000 (UTC) Received: from localhost ([::1]:41330 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k9Taw-0002oE-67 for larch@yhetil.org; Sat, 22 Aug 2020 09:30:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47882) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k9Tab-0002o4-Vb; Sat, 22 Aug 2020 09:29:46 -0400 Received: from mail-ua1-x944.google.com ([2607:f8b0:4864:20::944]:33602) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k9Taa-0005Rk-7Z; Sat, 22 Aug 2020 09:29:45 -0400 Received: by mail-ua1-x944.google.com with SMTP id q68so1334931uaq.0; Sat, 22 Aug 2020 06:29:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=t6OsCBjdoxfocowrh+4eGb+hhykMz5u1uILdMAxH38E=; b=ZfB1Ecc6d4uL5GdnYzcvWTyQOkyqSTM7fA5/Nxq5qw11N5QXDFbr6tULk2xxBO11GN 4mQt54iHC23A+gJV2hkPYWnBRhDXCGSsTbliJpL/oEKCuSVovad6/jAvn/MHxNYZ7u7r AHd5gHCCx568kx1njoskz5HIHF2AQDESBCGKvIfrgYSN5yMFDlIqoYJqTxtpH4Jo/EnP A/6J2svhp6q5yvDLBiDo8LiDZhiq4txRfakS0qbcnDLElmbwvcZcAY2JevnlcBn5cDCG 1bWGMsuX8p2Dm6JCD20OVo6uwg4mMnP7C664Ux/mxvpMtL8LWXbzG+yObfYqIrA+c+2D Ujdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=t6OsCBjdoxfocowrh+4eGb+hhykMz5u1uILdMAxH38E=; b=cYGhMsEsvtAC+FZakQe3yThMBrRjc8tTcSvr3bAa0RoDjga/ApiEUQlPCsGSKdRvgN 3/lR6kRVavQi10eCLI4h+n31UKVTHQxT0Gh+AVx5GMFDk64DEoGCTFzadmWiocdm0dG8 lXP6pCAshQOnp7efXrzVQHjh2lpUtvrhdetZtobsPr4pbUxzXS56DCh0bMeo+5CVKMHU 8j+rKHSlj0rdEwwm49rZG9POwDCxxnSQ/ytWk00k+1GCLrqIsgrIV1qoBfmGBVKzDNdu oSscT52UmYr0XFP6p8eex6d9bbgwPfF9uegNTK8cdRiLt/9Hs4R9hG+F1IebTNNdtsfu UTUQ== X-Gm-Message-State: AOAM533w6pQb/O22zygDdDJl4MAi0jI42HkoiwWQbq4zMNNk+BPKu0q5 NHdGQWw0r7KJ6R3PZUmVMKjeyV1IwHrwVDsfAXORjYybCw== X-Google-Smtp-Source: ABdhPJxipQKeELFTBaPdYWIeBFdqkjcOzfZkiS1fTfRu8r5KQKkAuLFLy8K5RlrQ66FMMU6THtGIUr0wbdZGKJ6w694= X-Received: by 2002:ab0:804:: with SMTP id a4mr4185943uaf.3.1598102982864; Sat, 22 Aug 2020 06:29:42 -0700 (PDT) MIME-Version: 1.0 References: <87sgclol1f.fsf@nicolasgoaziou.fr> <87ft8eomsu.fsf@gnus.org> In-Reply-To: <87ft8eomsu.fsf@gnus.org> From: "numbchild@gmail.com" Date: Sat, 22 Aug 2020 21:29:15 +0800 Message-ID: Subject: [SOLVED] Re: [PROBLEM] The commit "e1f09607e0" caused org-mode inline image preview try to convert PDF file link To: Lars Ingebrigtsen Content-Type: multipart/alternative; boundary="0000000000009bb2b405ad7758f6" Received-SPF: pass client-ip=2607:f8b0:4864:20::944; envelope-from=numbchild@gmail.com; helo=mail-ua1-x944.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Org-mode , Emacs developers Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=ZfB1Ecc6; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -0.71 X-TUID: 5cKbS7+XLIOz --0000000000009bb2b405ad7758f6 Content-Type: text/plain; charset="UTF-8" Thanks Lars. I will wait for new update in Emacs source code, then re-compile Emacs. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Sat, Aug 22, 2020 at 9:03 PM Lars Ingebrigtsen wrote: > "numbchild@gmail.com" writes: > > > The commit "e1f09607e0" caused this problem. I confirmed by git > > checkout a commit before it. And re-eval source code, then the problem > > is gone. This is because the commit added > > ~image-converter-file-name-extensions~ in image-convert.el library > > which includes "pdf" file extension. It uses command "gs" to convert > > pdf to image which use 100% of CPU. > > I think image-converter.el should have a list of types that it shouldn't > attempt to convert, even if the backend says that it can. PDF/PS are > obvious things -- they aren't images, but imagemagick will offer to > display them anyway. > > I'll add that to Emacs 28. > > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no > --0000000000009bb2b405ad7758f6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks Lars. I will wait for new update i= n Emacs source code, then re-compile Emacs.

[stardiviner]=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <Hack this world!>= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 GPG key ID: 47C32433
IRC(freeenode): star= diviner =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Twitter:=C2=A0 @numbchild<= br>Key fingerprint =3D 9BAA 92BC CDDD B9EF 3B36=C2=A0 CB99 B8C4 B8E5 47C3 2= 433
Blog: ht= tp://stardiviner.github.io/

=
On Sat= , Aug 22, 2020 at 9:03 PM Lars Ingebrigtsen <larsi@gnus.org> wrote:
"numbchild@gmail.com" <numbchild@gmail.com> writes:

> The commit "e1f09607e0" caused this problem. I confirmed by = git
> checkout a commit before it. And re-eval source code, then the problem=
> is gone. This is because the commit added
> ~image-converter-file-name-extensions~ in image-convert.el library
> which includes "pdf" file extension. It uses command "g= s" to convert
> pdf to image which use 100% of CPU.

I think image-converter.el should have a list of types that it shouldn'= t
attempt to convert, even if the backend says that it can.=C2=A0 PDF/PS are<= br> obvious things -- they aren't images, but imagemagick will offer to
display them anyway.

I'll add that to Emacs 28.

--
(domestic pets only, the antidote for overdose, milk.)
=C2=A0 =C2=A0bloggy blog: http://lars.ingebrigtsen.no
--0000000000009bb2b405ad7758f6--