From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id SPtqKcoXQV/rMgAA0tVLHw (envelope-from ) for ; Sat, 22 Aug 2020 13:04:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 2O8DJcoXQV+qYwAAbx9fmQ (envelope-from ) for ; Sat, 22 Aug 2020 13:04:10 +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 21635940606 for ; Sat, 22 Aug 2020 13:04:10 +0000 (UTC) Received: from localhost ([::1]:55820 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k9TBn-0003sx-PB for larch@yhetil.org; Sat, 22 Aug 2020 09:04:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43748) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k9TB9-0003sj-JN; Sat, 22 Aug 2020 09:03:27 -0400 Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:53196) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k9TB8-0002kS-0m; Sat, 22 Aug 2020 09:03:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=bNICALsfmuIBw1Tfgl0KE3FWYSObHIJ4J6oevQm5ShM=; b=UrlREqNKZ7L34kCGbaQRH1wIFp b8SBF3syz/c5mnSPqwLir/SCHyzLNlW29bSYXg32VcdXaQjrvFXJYuQVOIHwpcfM52d0a72Ne88K+ rb8YenB5HdTyL14HnVsPVvnwp1jVsC+kaQI6qhfGmax4AijcMbvXIYpPvFr9RigElzpw=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k9TAx-0007b4-32; Sat, 22 Aug 2020 15:03:20 +0200 From: Lars Ingebrigtsen To: numbchild@gmail.com Subject: Re: [PROBLEM] The commit "e1f09607e0" caused org-mode inline image preview try to convert PDF file link References: <87sgclol1f.fsf@nicolasgoaziou.fr> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAG1BMVEVccW83UphDNkGE nJZukpcXFBC0YhzblTz///9CV3QPAAAAAWJLR0QIht6VegAAAAd0SU1FB+QIFg0BJ7DKp88AAAGr SURBVDjLdZNNT8MwDIa9Usp12y/YDN150IldK2pxRhXdeapYckVIJH8f20k/1hVraxU/evMmrg0w G4slbLer1VYeHOvw4oAEVrNR7BWs43I9gOd5sC5e/tmqWghYdmdZLnih3vwDSJpx1JzJjHU3oHki MsZ6BvfXYENkjZkBH0RHBUl+7VETlQryCUBiE/aYCNRDwdskX6cRgCp2xkQlWxC9MkhL5Lz13owU Akp22RnvvWsHReblHpDwlkLwBmg+Sj46D7n6jrMM2+609B6AFFPq5gQ8CqAAgJPMvM+btqkUHANA BnKy/OQ+i4OAqleIh79Yd1cUKsn4Hgo0WuMKCRZVkA7AGf+tQPYCEhAEvN05CoiCh3cBuE2niMCG mtjfulLJoQfRYwN6pKpTZLGKBiDNa8R0AEqM+eLLYo12FiwQbRpBMOFyncsEN7weQLieMyUicjFo BJz+MW8QQ2eXasIfxAq49G0Eh6DJ5Ht4k98AbRT/00xBclL/UbtCofmmlo81bmMFOlOIVz0M+5tZ iyADaGZBbPd+Cnik+KFgMlDspeBhMps1V0XAH3m3GhFuKFUXAAAAJXRFWHRkYXRlOmNyZWF0ZQAy MDIwLTA4LTIyVDEzOjAxOjM5KzAwOjAwgrFqZQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMC0wOC0y MlQxMzowMTozOSswMDowMPPs0tkAAAAASUVORK5CYII= X-Now-Playing: Lizzy Mercier Descloux's _Press Color_: "Fire" Date: Sat, 22 Aug 2020 15:03:13 +0200 In-Reply-To: (numbchild@gmail.com's message of "Sat, 22 Aug 2020 08:12:19 +0800") Message-ID: <87ft8eomsu.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org 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, 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=fail (rsa verify failed) header.d=gnus.org header.s=20200322 header.b=UrlREqNK; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gnus.org (policy=none); 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.09 X-TUID: 6T8VvLHNUaO3 "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