[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Image-conversion shims

From: Juri Linkov
Subject: Re: Image-conversion shims
Date: Mon, 07 Oct 2019 21:48:36 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)

>> We already have a working solution with imagemagick-register-types,
>> imagemagick-types-inhibit, imagemagick-enabled-types, and all related code.
>> Customization should be no different when images are handled via a process
>> instead of using a linked library.
> It's quite different -- for one, using the external library is off by
> default, but using ImageMagick is on by default (if you have an Emacs
> compiled with the support).
> But that's pretty much irrelevant for the discussion of
> `auto-mode-alist' -- an ImageMagick-enabled Emacs won't use `image-mode'
> for exotic image formats by default (you end up in `fundamental-mode' if
> you visit a .webp file).  The user has to put that into
> `auto-mode-alist' themselves.

After customizing imagemagick-enabled-types to t, it registers all image
types; image-converter could do the same.  This is a good trade-off to
not register all exotic formats in auto-mode-alist by default,
but still easy to customize to stuff everything to auto-mode-alist
when needed.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]