Stefan Kangas <stefan@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at submit) by debbugs.gnu.org; 30 Oct 2021 16:21:55 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 30 12:21:55 2021 Received: from localhost ([127.0.0.1]:58296 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mgr7D-0004tu-8r for submit <at> debbugs.gnu.org; Sat, 30 Oct 2021 12:21:55 -0400 Received: from lists.gnu.org ([209.51.188.17]:48782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>) id 1mgr78-0004tY-Jv for submit <at> debbugs.gnu.org; Sat, 30 Oct 2021 12:21:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49476) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <stefankangas@HIDDEN>) id 1mgr78-0007Ca-Eg for bug-gnu-emacs@HIDDEN; Sat, 30 Oct 2021 12:21:50 -0400 Received: from mail-pf1-f172.google.com ([209.85.210.172]:37482) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <stefankangas@HIDDEN>) id 1mgr76-0007Zk-JF for bug-gnu-emacs@HIDDEN; Sat, 30 Oct 2021 12:21:50 -0400 Received: by mail-pf1-f172.google.com with SMTP id y20so1449179pfi.4 for <bug-gnu-emacs@HIDDEN>; Sat, 30 Oct 2021 09:21:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:mime-version:date:message-id:subject:to; bh=OHLaXFYVItsmUPC+9OqmJ3QV6HafnIjfmncRCwslfNc=; b=WWEpEWqvhVu88zagjAHkm0dhXWNp4J7OsPF+ducyimiAiLd46YNPVhRDdjVXCmCxzA KIO9/yRUt6+7hYAUJJP7LjVEgga4NxvflxCakjC4Yp+cBmmpQt3hCvthyO3UleubDCwO /+b0r5ZGamQBDZHiwZopQYzhI3yyq1HRNsPBuX8Jn6OBnTbuDCGG4XWRmHKd1te6Wf0K u13baMSQ7ju9DBjfpAn3qjekLV2gtA1TOtrr9KM/esO7FKiD2Cv/JqHxbS4icMfLjA8y ZZa6kesBXdYfCrFUhDeGVMU84F4yBGVCeuj/WDi/xMw6bl7ENYveletxb5BK9MSEO+fm R7eg== X-Gm-Message-State: AOAM530eDcJ+KpMRajoi7Gad0c6bRc+JBQy1/Ku/qahjpJ6cUGcSb4qv j09j+iV+D20nxTJXvIUC5dOdXwKcfL0Z0YbV8NnoOrd8 X-Google-Smtp-Source: ABdhPJwKQ41bms11hIMQGFidP1uzDua7HMZxUWmdNTrB49dVjzKYFoRVIBPnjs7Phvv4EA0raTidse1F0FqX0mCBwtY= X-Received: by 2002:a63:370c:: with SMTP id e12mr13344874pga.359.1635610907256; Sat, 30 Oct 2021 09:21:47 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sat, 30 Oct 2021 09:21:46 -0700 From: Stefan Kangas <stefan@HIDDEN> MIME-Version: 1.0 Date: Sat, 30 Oct 2021 09:21:46 -0700 Message-ID: <CADwFkm=DWSOFFiqp-gMU06FEx2aRyMEXZDgDNPGy7_ZYVcjviw@HIDDEN> Subject: image-use-external-converter should fall back to another converter if one fails To: bug-gnu-emacs@HIDDEN Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=209.85.210.172; envelope-from=stefankangas@HIDDEN; helo=mail-pf1-f172.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.8 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.8 (-) (This was previously discussed in Bug#51381.) Summary: When `image-use-external-converter' is non-nil, don't just give up if one fails, try another one. I have both the GraphicsMagick and ImageMagick tools installed. The IM "convert" command supports .heif images, the GM "gm" command does not. Now I do: 0. curl --output /tmp/C001.heic \ https://raw.githubusercontent.com/nokiatech/heif_conformance/master/conformance_files/C001.heic 1. emacs -Q --eval '(setq image-use-external-converter t)' /tmp/C001.heic This gives the error message "Unknown image type", as "gm" can't convert it. It would be better if it could fall back to use "convert". Lars Ingebrigtsen <larsi@HIDDEN> writes: > We could re-probe the converters when something fails and then > use the other converter, for instance? Or we could just probe every > time, but keep a table of what we've tried. > > Or we could probe all the converters at startup, and maintain a mapping > of which converter does what -- that sounds cleanest.
Stefan Kangas <stefan@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#51515
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.