Windows下的Emacs和PNG文件 [英] Emacs under Windows and PNG files
问题描述
编辑:PNG缩略图实际上显示正常(例如通过C-t C-t)。但是,打开它们失败(在基本模式下打开垃圾,Mx映像模式说无效映像规范)。
您必须将这些DLL中的一个libpng12d.dlllibpng12.dlllibpng.dlllibpng13d.dlllibpng13.dll复制到您的emacs-23.1 / bin /目录中。它们需要您必须复制的zlib1.dll。我为jpeg62.dll和giflib4.dll做了同样的事情,现在我的emacs支持jpg,gif和png文件。由于某种原因,如果我只是将这些dll放在路径中,它不起作用。
您可以检查(image-type-available-p' png)
以查看是否支持png。将图像类型映射到支持它的dll列表
Would anyone have any pointers on getting PNG images to display in Emacs 23 under Win32?.. I have installed the gnuwin32 set of utilities, including libpng and zlib; C:\Program Files\GnuWin32\bin is in path. JPG files started working but not PNGs. I'd appreciate any hints on getting this to work.
EDIT: PNG thumbnails actually display fine (e.g. in dired via C-t C-t). However, opening them fails (opens as garbage in fundamental mode, and M-x image-mode says "invalid image specification").
You have to copy one of these dlls "libpng12d.dll" "libpng12.dll" "libpng.dll" "libpng13d.dll" "libpng13.dll" to your emacs-23.1/bin/ directory. They require zlib1.dll which you have to copy as well. I did the same thing for jpeg62.dll and giflib4.dll and now my emacs supports jpg, gif and png files. For some reason it does not work if I simply put these dlls in the path.
You can check (image-type-available-p 'png)
to see if png is supported. image-library-alist
maps image type to a list of dlls which support it.
这篇关于Windows下的Emacs和PNG文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!