(image-type-available-p 'jpeg) ; t
(image-type-available-p 'bmp) ; nil
(emacs-version)
; GNU Emacs 26.1 (build 1, x86_64-apple-darwin14.5.0, NS appkit-1348.17 Version 10.10.5 (Build 14F2511)) of 2018-05-31
uname -a
Darwin Pengs-iMac.local 18.5.0 Darwin Kernel Version 18.5.0: Mon Mar 11 22:26:31 PDT 2019; root:xnu-4903.251.3~5/RELEASE_X86_64 x86_64
应该是(image-type-available-p 'jpeg)
,这个肯定返回t才会显示jpg图片。
不能显示bmp是编译时缺少librsvg
那为什么bmp不支持呢…有什么解决方案吗, image-dired又能显示
image-types is a variable defined in ‘C source code’.
Its value is (png gif tiff jpeg xpm xbm pbm)
Documentation:
List of potentially supported image types.
Each element of the list is a symbol for an image type, like ‘jpeg’ or ‘png’.
To check whether it is really supported, use ‘image-type-available-p’.
Homebrew remove the emacs build options: