[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PROBLEM] The commit "e1f09607e0" caused org-mode inline image previ

From: address@hidden
Subject: Re: [PROBLEM] The commit "e1f09607e0" caused org-mode inline image preview try to convert PDF file link
Date: Sat, 22 Aug 2020 08:12:19 +0800

Because this problem involved Emacs, so I Cc Emacs mailing list too.

The problem is the commit "e1f09607e0" auto convert PDF file link in Org Mode when toggle inline image display. This used 100% of CPU by "gs" command.

Hi @Nicolas:

I finally figured out the reason.
I'm using the latest "master" branch source code compiled Emacs. And it add new feature to convert possible image files.
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 thinked about this problem, maybe this should modify code in Org Mode side to exclude new ~image-converter-file-name-extensions~.

Or does anyone have better solution?

[stardiviner]           <Hack this world!>      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 Mon, Aug 17, 2020 at 2:15 PM Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:

"numbchild@gmail.com" <numbchild@gmail.com> writes:

> The latest commit "f4687993c53a5339e" added "pdf" file type into inline
> image rules.

No, it doesn't. "pdf" was already in the list before this commit.

> This caused org-toggle-inline-image try to convert large PDF
> into png images. Caused very long time suspend.

You can customize the variable and remove "pdf".

Nicolas Goaziou

reply via email to

[Prev in Thread] Current Thread [Next in Thread]