From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#37972: Emacs cannot deal with .webp suffix Date: Wed, 30 Oct 2019 01:32:08 +0200 Organization: LINKOV.NET Message-ID: <875zk7f95b.fsf@mail.linkov.net> References: <87imo869i8.5.fsf@jidanni.org> <87o8xzz3h2.fsf@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="2368"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson , 37972@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 30 00:52:23 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 1iPbHh-0000Uj-Cj for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Oct 2019 00:52:21 +0100 Original-Received: from localhost ([::1]:35250 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPbHg-0001M0-7f for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Oct 2019 19:52:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53247) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPbHR-0001If-IS for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2019 19:52:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iPbHQ-0006D9-CS for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2019 19:52:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39938) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iPbHQ-0006C2-5K for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2019 19:52:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iPbHN-0004Qn-KN for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2019 19:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Oct 2019 23:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37972 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 37972-submit@debbugs.gnu.org id=B37972.157239311417021 (code B ref 37972); Tue, 29 Oct 2019 23:52:01 +0000 Original-Received: (at 37972) by debbugs.gnu.org; 29 Oct 2019 23:51:54 +0000 Original-Received: from localhost ([127.0.0.1]:48759 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPbHG-0004QT-Bf for submit@debbugs.gnu.org; Tue, 29 Oct 2019 19:51:54 -0400 Original-Received: from azure.elm.relay.mailchannels.net ([23.83.212.7]:25034) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPbHB-0004QD-LZ for 37972@debbugs.gnu.org; Tue, 29 Oct 2019 19:51:50 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 083263C0618; Tue, 29 Oct 2019 23:51:48 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a3.g.dreamhost.com (100-96-14-244.trex.outbound.svc.cluster.local [100.96.14.244]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id EDF423C056D; Tue, 29 Oct 2019 23:51:46 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a3.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.18.5); Tue, 29 Oct 2019 23:51:47 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Harbor-Soft: 715d6b0b07d6e956_1572393107203_1895978829 X-MC-Loop-Signature: 1572393107203:2868307070 X-MC-Ingress-Time: 1572393107203 Original-Received: from pdx1-sub0-mail-a3.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a3.g.dreamhost.com (Postfix) with ESMTP id 6DB5A81801; Tue, 29 Oct 2019 16:51:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=KZEthEuI0o+m6sraz5s1dHFl9wo=; b= 3bmJSf54O2CXPnDqp/HAfgclK8UE/G1aSq4WK/+ZGTKl+T3jIIOcfUwu/XKrNiDn wFeHWCAlz35NtsFq5Myf55owUfciCGKsbuC/RjEFqKFJ8UrdW1ozP6zR/XhD0ckc gJgb1TTp26Zn+4HDKiItvPRtUDA6pJ8lTQK6suWK41s= Original-Received: from mail.jurta.org (m91-129-101-77.cust.tele2.ee [91.129.101.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a3.g.dreamhost.com (Postfix) with ESMTPSA id E016D817F7; Tue, 29 Oct 2019 16:51:39 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a3 In-Reply-To: <87o8xzz3h2.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 29 Oct 2019 21:44:25 +0100") 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:170386 Archived-At: >> $ file * >> X.webp: RIFF (little-endian) data, Web/P image... >> >> $ emacs X.webp #binary mess >> $ ln X.webp X.gif >> $ emacs X.gif #works fine >> >> It doesn't matter what the suffix is: jpg, gif all work the same. Just >> webp is not recognized yet. Renaming .webp to .gif displays it, but also spews into stderr: Decoded /tmp/magick-6240. Dimensions: 320 x 214 . Format: lossy. Now saving... Saved file /tmp/magick-6240 Looks like debug info, should such fprintf be disabled? Anyway, maybe these messages are less relevant since now we have image-converter: > Emacs 27 can display these image formats if you have > > (setq image-use-external-converter t) > > But this bug report reminded me that we had agreed on defaulting these > exotic image formats to `image-mode', so I've now done that (as well as > fixing the UX of being unable to display images slightly). Thanks. I tried now to enable image-use-external-converter and visit a webp image, but it signals an error: Cannot display image: (Searching for program No such file or directory gm) I don't know what this 'gm' is, never used it. I have only 'convert' installed. Is it supported by image-converter?