X-Loop: help-debbugs@HIDDEN Subject: bug#51515: image-use-external-converter should fall back to another converter if one fails Resent-From: Stefan Kangas <stefan@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 30 Oct 2021 16:22:01 +0000 Resent-Message-ID: <handler.51515.B.163561091518846 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 51515 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 51515 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.163561091518846 (code B ref -1); Sat, 30 Oct 2021 16:22:01 +0000 Received: (at submit) by debbugs.gnu.org; 30 Oct 2021 16:21:55 +0000 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> 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-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.
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Stefan Kangas <stefan@HIDDEN> Subject: bug#51515: Acknowledgement (image-use-external-converter should fall back to another converter if one fails) Message-ID: <handler.51515.B.163561091518846.ack <at> debbugs.gnu.org> References: <CADwFkm=DWSOFFiqp-gMU06FEx2aRyMEXZDgDNPGy7_ZYVcjviw@HIDDEN> X-Gnu-PR-Message: ack 51515 X-Gnu-PR-Package: emacs Reply-To: 51515 <at> debbugs.gnu.org Date: Sat, 30 Oct 2021 16:22:01 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 51515 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 51515: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D51515 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
Received: (at control) by debbugs.gnu.org; 30 Oct 2021 16:53:24 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 30 12:53:24 2021 Received: from localhost ([127.0.0.1]:58333 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mgrbg-0001ov-Br for submit <at> debbugs.gnu.org; Sat, 30 Oct 2021 12:53:24 -0400 Received: from mail-pg1-f175.google.com ([209.85.215.175]:33591) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>) id 1mgrbe-0001og-F3 for control <at> debbugs.gnu.org; Sat, 30 Oct 2021 12:53:22 -0400 Received: by mail-pg1-f175.google.com with SMTP id r28so13040991pga.0 for <control <at> debbugs.gnu.org>; Sat, 30 Oct 2021 09:53:22 -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=Bful2ZRea+0QC3CQX72VBiWGYuHIcBT2EDIkdtwqVN0=; b=J1UhDa5lBObSIfZOJK2hBDEiaQPSDoRHGebXa+8L8bkOav5jFV3mBdmEMja/oPMnyy RfivORAEd8CtZajySSnIvdZpRnMbcoD5hqIJa9w3+MVmq6pBSbq6a4e89z8515mXmTVK /zq/qw3iBCLPLjB5sY/0toL+iDytOFPzf81nrPriW/NOKaQurKS4BcQDgBfbZb5IwqGy E0msGV5yG9asFNAp1IZx+snhmMIJGuxBNAE3qIot/SAkZYhSPf6a4VypD1+VyIXjvLhD Pq/Jm4aFjjYNq1Vo5Uj1zNYkTvU7h98HR+idy/UcIBWmjx6aks/IUa/VF5HrStLYNe76 thTA== X-Gm-Message-State: AOAM530MOkbeewRgHP71eiZsDw9gc2K1wmCZUcujS8uRBxt4qO/VAlvn 8tSGTRkqgGr+ykJulN/PTPLS5kOpVbI/EEvHKD6DMsP6 X-Google-Smtp-Source: ABdhPJzpBLrIg5MmkKUJ53Ri/HOj/So0N71t1xObbztXUasc/gxmFWex/Ii0V7ICqh5YTFgcroBvdbljbDTc9JYVpJs= X-Received: by 2002:a63:370c:: with SMTP id e12mr13441419pga.359.1635612796502; Sat, 30 Oct 2021 09:53:16 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sat, 30 Oct 2021 09:53:16 -0700 From: Stefan Kangas <stefan@HIDDEN> MIME-Version: 1.0 Date: Sat, 30 Oct 2021 09:53:16 -0700 Message-ID: <CADwFkmnaU-EzJL5t69LDpfftsF7W9j3vZFS5qQg7BfRaJ1miVQ@HIDDEN> Subject: control message for bug #51515 To: control <at> debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: control 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: -0.5 (/) severity 51515 wishlist quit
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.