From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Felix E. Klee" Newsgroups: gmane.emacs.help Subject: Displaying images Date: Sun, 15 Jan 2023 11:35:41 +0100 Message-ID: <87r0vwm6f6.fsf@inka.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6224"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) To: help-gnu-emacs@gnu.org Cancel-Lock: sha1:SpHeszC9ay88Ns/LThy9G5sHLrA= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 15 11:36:47 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pH0Na-0001Sy-QI for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 15 Jan 2023 11:36:46 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pH0Mw-0004ta-8m; Sun, 15 Jan 2023 05:36:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pH0Mm-0004ow-6e for help-gnu-emacs@gnu.org; Sun, 15 Jan 2023 05:35:56 -0500 Original-Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pH0Mk-0007in-9P for help-gnu-emacs@gnu.org; Sun, 15 Jan 2023 05:35:55 -0500 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1pH0Mg-0000Do-Go for help-gnu-emacs@gnu.org; Sun, 15 Jan 2023 11:35:50 +0100 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geh-help-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:142243 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit I am using Emacs for file management. This involves viewing images either in a buffer or using `image-dired`. All worked fine for years. However recently: * There a new image formats, such as AVIF, that don’t diplay out of the box. * I bought a Sony ZV-1 digital camera, and its ARW raw images don’t display. I already have an idea how to solve that, not too important now. Yes, those AVIF images, why don’t they display automatically? They are supported by the latest ImageMagick and GraphicsMagick, as tested on my up-to-date Arch Linux system. As example, I use: [hato.profile0.8bpc.yuv420.no-cdef.avif][1] My Emacs config for testing is attached. A few minutes ago, I could open the AVIF file, and it was displayed in `fundamental-mode`. I had to manually do M-x `image-mode`. Then it displayed. Currently that doesn’t work at all anymore. I am greeted by: “Unknown image type” There are two more things that are confusing me: * `auto-image-file-mode` by default is `nil`, but still JPEG images, for example, do display. So I don’t feel like turning it on, and it doesn’t seem to make a difference anyhow. Perhaps it’s a legacy option. * In the customization buffer, for “Image Converter” it says “graphicsmagick” and “CHANGED outside Customize.” Note that I start Emacs as `emacs -q -l init.el` with the attached init file. Certainly `image-converter` is not set there. I am using: GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.36, cairo version 1.17.6) of 2023-01-03 [1]: https://aomediacodec.github.io/av1-avif/testFiles/Link-U/hato.profile0.8bpc.yuv420.no-cdef.avif --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=init.el (setq user-init-file (or load-file-name (buffer-file-name))) (setq user-emacs-directory (file-name-directory user-init-file)) (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(image-file-name-extensions '("png" "jpeg" "jpg" "gif" "tiff" "tif" "xbm" "xpm" "pbm" "pgm" "ppm" "pnm" "svg" "avif")) '(image-use-external-converter t) '(imagemagick-enabled-types t)) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) --=-=-=--